If statements provide support for conditional branching and flow control. As in most languages, if statements can be followed by an optional else statement, executed if the original condition is not met.
var x = 10;
if( x < 100 )
{
x = x * 100;
}
else
{
x = x + 4.5;
}
Comments
0 comments
Please sign in to leave a comment.