if(clause) {commands} else if(clause) {commands} else {commands}
Conditionally execute one of a number of blocks of commands.
clause
commands
if($after(18:45,LST)) { track 3c345 } else if($after(12:30,LST)) { track 3c273 } else { track 0552+398 }
if
command executes each if()
clause until one evaluates to true, or the else statement is
reached. It then executes the block of commands that follow that
clause (or else statement), and skips the rest of the
else
clauses.