Home Reference HScript commands 

if hscript command

Conditionally executes a block of commands if a condition is true.

Usages

  1. if (condition) [then] ... [else if | else ] ... endif

If condition is true, the contents of the if are executed.

Note

Currently, statements inside the if clause must occur on separate lines. That is, statements like “if ($F == 1) echo Frame One” will not work.

Examples

if ( $F == 1 ) then
echo Frame One
else
echo Not Frame One
endif