If / Else
Conditions determine the behavior of the system based on specific criteria.
Creating if / else
conditions
if / else
conditionsSyntax
If/Else Synthax:
if <condition> <block> else <block>
<condition> Synthax:
Example:
var i = 92;
if (i < 100) {
printuf("i is less than 100");
} else {
printuf("i is greater than 100");
}
Last updated