HistoryCal - V0.0.7 Manual
if Statement

Home Development V0.0.7 Manual Script if Statement

if Statement

An if statement allows one or more statements to be run, depending on a given condition.

The statement may include zero or more 'elseif condition' sub-statements and an optional 'else' sub-statement.

if Statement
FormatExample
if bool_expr
statements ...
elseif bool_expr
statements ...
elseif bool_expr
statements ...
else
statements ...
endif
if value = 10 writeln "Value is a round 10"; elseif value < 5 writeln "Value as less than 5"; elseif value = 100 writeln "Value is exactly 100"; else writeln "Value is boring"; endif

Valid XHTML 1.0 Strict

12th October 2016