Difference between revisions of "Template:If"
From Curious Expedition 2 Wiki
m  | 
				m  | 
				||
| Line 3: | Line 3: | ||
{{examples|  | {{examples|  | ||
| − | {{example3|if|  | + | {{example3|if|argument|Argument is non-empty}}  | 
{{example3|if||Argument is non-empty}}  | {{example3|if||Argument is non-empty}}  | ||
}}  | }}  | ||
Latest revision as of 19:54, 11 January 2021
Returns the second argument if the first argument is non-empty; returns empty otherwise.
Examples
| You type | You get | 
|---|---|
| 
 
  | 
 Argument is non-empty  | 
| 
 
  | 
 
  |