Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 547 Bytes

keyword_else.md

File metadata and controls

20 lines (14 loc) · 547 Bytes

Home Keywords

Keyword else

Description

Declares the alternative branch to an if statement. This branch is executed if its corresponding if statement fails.

Example

const double E_TRUNCATED = 2.71;
const double PI_TRUNCATED = 3.14;

if E_TRUNCATED > PI_TRUNCATED;
    println "This print will never execute.";
else;
    println "Statements in this block will be executed as the above if statement fails.";
end;