if

if expr1 ?then? body1 elseif expr2 ?then? body2 ... ?else? ?bodyN?

Runs the body of the first condition that is true. Each condition is an expr expression in braces. The result is the result of the body that ran, or an empty string.

Examples

A click on an example runs it in the shell of the page.

Facts