buildrelease
[openafs-wiki.git] / TWiki / VarIF.mdwn
diff --git a/TWiki/VarIF.mdwn b/TWiki/VarIF.mdwn
new file mode 100644 (file)
index 0000000..615c190
--- /dev/null
@@ -0,0 +1,8 @@
+<a name="VarIF"></a>
+
+### <a name="IF{&quot;condition&quot; ...} -- simple co"></a> IF\{"condition" ...\} -- simple conditionals
+
+- Evaluate a condition and show one text or another based on the result. See details in [[IfStatements]]
+- Syntax: `%IF{"CONDITION" then="THEN" else="ELSE"}%` shows `"THEN"` if `"CONDITION"` evaluates to `TRUE`, otherwise `"ELSE"` will be shown
+- Example: `%IF{"defined FUNFACTOR" then="FUNFACTOR is defined" else=" is not defined"}%` renders as ==
+- Related: [[$IF()|Main/SpreadSheetPlugin#FuncIF]] of [[SpreadSheetPlugin]]