Difference between revisions of "Template:If"

From Curious Expedition 2 Wiki
m
m
 
Line 3: Line 3:
  
 
{{examples|
 
{{examples|
{{example3|if|defined|Argument is non-empty}}
+
{{example3|if|argument|Argument is non-empty}}
 
{{example3|if||Argument is non-empty}}
 
{{example3|if||Argument is non-empty}}
 
}}
 
}}

Latest revision as of 20:54, 11 January 2021

Returns the second argument if the first argument is non-empty; returns empty otherwise.

Examples

You type You get

{{if|argument|Argument is non-empty}}

Argument is non-empty

{{if||Argument is non-empty}}

References[edit]