Site Notice

hello, world

Difference between revisions of "Template:IsEmpty"

From Project-EPB Commons
(// Via InPageEdit-v2)
(// Via InPageEdit-v2)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
   | undefined
 
   | undefined
 
}}</code>
 
}}</code>
* '''switch''' <code>{{#switch: {{{1}}}
+
* '''switch''' <code>{{#switch: {{#if: {{{1|}}} | + | {{{1|-}}} }}
  | {{{1|placeholder}}} = not empty
+
  | - = undefined
   |                     = is empty
+
   |   = is empty
   | #default            = undefined
+
   | + = not empty
 
}}</code>
 
}}</code>
 
<noinclude>
 
<noinclude>

Latest revision as of 00:44, 26 May 2023

  • raw {{{1}}}
  • ifeq undefined
  • switch undefined



input output
{{IsEmpty}}
  • raw {{{1}}}
  • ifeq undefined
  • switch undefined
{{IsEmpty|}}
  • raw
  • ifeq is empty
  • switch is empty
{{IsEmpty|1}}
  • raw 1
  • ifeq not empty
  • switch not empty