1
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.1" version="1"}%
2
%META:TOPICPARENT{name="Macros"}%
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