HistoryCal - V0.0.7 Manual
if Statement
Home Development V0.0.7 Manual Script if Statement

Statement if

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. The statement must end with the endif keyword.

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
Home Development V0.0.7 Manual Script if Statement

Managed by WebPageLayout Validated by HTML Validator (based on Tidy)

12th October 2016