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