User Tools

Site Tools


syntax:functions:if

If(condition, expression1, expression2)

Returns the result of expression1 if condition is true. Otherwise returns the result of expression2.

Example Result
if( 2 + 2 = 4, 'Makes sense', 'Nonsense' ) Makes sense
if( 2 + 1 = 4, 'Makes sense', 'Nonsense' ) Nonsense
syntax/functions/if.txt · Last modified: 2016/06/08 04:14 by dmitry