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:
|
|
If you wait for Jeb to finish his part of the project, you’ll be waiting till the cows come home (a long time). |