Changes

Jump to: navigation, search

JavaScript Flow Control and Looping

No change in size, 17:11, 31 May 2007
no edit summary
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 constructing an if statement is to specify what action should be taken if the expression is true. This is acheived achieved by placing the lines of script to be executed in open and closing braces after the if statement:
<pre>

Navigation menu