User Tools

Site Tools


syntax:functions:if

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
syntax:functions:if [2014/09/16 22:32] – created dmitrysyntax:functions:if [2015/03/27 17:45] elenap
Line 1: Line 1:
 ====== If(condition, expression1, expression2) ====== ====== If(condition, expression1, expression2) ======
  
-Returns result of //expression1// if //condition// is true, otherwise returns result of //expression2//.+Returns result of //expression1// if //condition// is true. Otherwise returns result of //expression2//.
  
 ^  Example  ^  Result  ^ ^  Example  ^  Result  ^
 | if( 2 + 2 = 4, 'Makes sense', 'Nonsense' )  | Makes sense  | | if( 2 + 2 = 4, 'Makes sense', 'Nonsense' )  | Makes sense  |
 +| if( 2 + 1 = 4, 'Makes sense', 'Nonsense' )  | Nonsense  |
  
syntax/functions/if.txt · Last modified: 2021/08/16 02:42 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki