Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

$IF

  • Last UpdatedJan 05, 2026
  • 1 minute read

Syntax

$IF (Conditional Expression) THEN (Command) < ELSE (Command) >

If statements conditionally transfer control or conditionally execute a command. The statement first evaluates the logical expression. If the value of the expression is TRUE(-1) then the command after the THEN is executed. If the value of the expression is FALSE then the command after the ELSE is executed if there is one, otherwise the command on the next line is executed. Any Interface or Application command can be used. Refer to the $EVALUATE command for a full list of operators.

for example,

$IF loop+1>=max THEN $GOTO %next-loop ELSE $GOTO % finish-loop

$IF width*height*depth > maxvol THEN $SET maxvol width*height*depth

$IF a>b & a>c THEN $GOTO %failed

TitleResults for “How to create a CRG?”Also Available in