if


if else

if

if(condition) { BLOCK1 }

        If condition is true thenBLOCK1 is executed.
Example:
if(1 > 2) {$"A";NL;}
produces nothing.

if else

if(condition) { BLOCK1 } else { BLOCK2 }

        If condition is true thenBLOCK1 is executed, otherwise BLOCK2 is executed.
Example:
if(1 > 2) {$"A";NL;} else $"B\n"
produces B