Skip to content

Control Flow

Squirrel supports most basic control flow statements.

If

if statements check if a condition evaluates to true.

if ( expression )
    body

null, 0 and 0.0 evaluate to false.