var type = 2; var recordCount= 4285079; if (type > 0) { document.write(recordCount); }