Javascript Reference
Categories: Operators

javascript Operators if

@March 15, 2008, 1:22 a.m.
if Firefox/Netscape/NN 2 IE 3 ECMA 1  

  

This is a simple conditional statement that provides one alternate execution path.

 
Example
 
if (myDateObj.getMonth( ) == 1) {
    calcMonthLength( );
}

Powered by Linode.