Skip to content

If statement

Syntax

if_statement = "if" , ( "(" expression ")" , statement | expression , "{" , statement , "}" ) { else_clause };

else_clause  = "else" , statement ;
if (condition) { return; }

if (condition) return;

if condition { return; }