Changes

JavaScript Flow Control and Looping

3 bytes added, 17:52, 26 May 2007
The JavaScript ''if'' Statement
In the above example if i is less than 2 then the expression will be evaluated as being ''true'', otherwise it will be returned as ''false''
The next step in structing constructing an if statement is to specify what action should be taken if the expression is true. This is acheived by placing the lines of script to be executed in open and closing braces after the if statement:
<pre>