if
, which executes some code only if a specified condition is true
if...else
,
which executes some code if the condition is true and another code if the condition is false
if...else if....else
,
which selects one of many blocks of code to be executed
switch
,
which selects one of many blocks of code to be executed
Note that if is written in lowercase letters.
Using uppercase letters (IF ) will generate an error.
The else if and else parts are optional.
|
|
The script checks the current minute:
|
|