Documentation index Main site
Bendyroad IDE reference manual. © Copyright Bendyroad 2024.

Condition examples

Testing for a condition

Equals

if( a == 10 ) { q = 1 ; }

Not equal

if( a != 10 ) { q = 1 ; }

Greater than

if( a > 10 ) { q = 1 ; }

Greater than or equal

if( a >= 10 ) { q = 1 ; }

Less than

if( a < 10 ) { q = 1 ; }

Less than or equal

if( a <= 10 ) { q = 1 ; }