data/TWiki/VarIF.txt
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
permissions -rw-r--r--
RELEASE 4.2.0 freetown
     1 %META:TOPICINFO{author="TWikiContributor" date="1185635037" format="1.1" version="2"}%
     2 %META:TOPICPARENT{name="TWikiVariables"}%
     3 #VarIF
     4 ---+++ IF{"condition" ...} -- simple conditionals
     5    * Evaluate a condition and show one text or another based on the result. See details in IfStatements
     6    * Syntax: =%<nop>IF{"CONDITION" then="THEN" else="ELSE"}%= shows ="THEN"= if ="CONDITION"= evaluates to =TRUE=, otherwise ="ELSE"= will be shown
     7    * Example: =%<nop>IF{"defined FUNFACTOR" then="FUNFACTOR is defined" else="FUNFACTOR is not defined"}%= renders as =%IF{"defined FUNFACTOR" then="FUNFACTOR is defined" else="FUNFACTOR is not defined"}%=
     8    * Related: [[SpreadSheetPlugin#FuncIF][$IF()]] of SpreadSheetPlugin