IF: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
MikeO (talk | contribs)
No edit summary
Line 1: Line 1:
{{Command|syntax=IF <value>, <condition>, <value>, THEN
{{Command|syntax=IF <value 1> <condition> <value 2>, THEN
|description=*DESCRPTION*
|description=:Conditional check to compare two values and act upon the result.


|param1=<value>|param1_desc={{value}}
|param1=<value 1>|param1_desc=First value to check
|param2=<condition>|param2_desc={{condition}}
|param2=<condition>|param2_desc=Type of check, must be on of the following 5<br>
|param3=<value>|param3_desc={{value}}
|<nowiki>=</nowiki>||Equals|-
|<nowiki><></nowiki>||Not equals|-
<nowiki>=</nowiki><t>Equals
 
 
|param3=<value 2>|param3_desc={{value}}
|param4=THEN|param4_desc={{THEN}}
|param4=THEN|param4_desc={{THEN}}
}}
}}

Revision as of 20:47, 26 July 2010

Command

IF <value 1> <condition> <value 2>, THEN


Conditional check to compare two values and act upon the result.

Parameters

<value 1>
First value to check
<condition>
Type of check, must be on of the following 5
<value 2>
Name of variable to be set by this command
THEN
Template:THEN

Example

- IF