The Freya Programming Language

If statements

See also

The if statement execute one of its nested statements according to the evaluation of its boolean condition.

Syntax

There are two variants for the if statement. In the first variant, there are two dependent statements:

if condition then statement else statement

The second variant only provides one statement, that must be executed when the condition evaluates as true.

if condition then statement

See also

The Freya Programming Language
Statements
case statements
Expressions
Conditional expressions