If

Conditional execution of command lines.
Format:
if expression
true-statement block
[else
false-statement block ]
endif

e.g.:
if !search_scan( sname) 
  say char(7)" ERROR: sname does not exist, prtc... " 
  wait 
  end 
endif
It is tested whether the SCAN sname exists. If not, an error message is sent to the terminal preceded by the bell character. The program waits for a keystroke (wait without time specification) before the command file is finished (end).

Format:
if expression then statement

Description:
Single line if statement.

e.g.:
if(x > 1000) then interrupt_scan = 1