Protected page

Template:Switch

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search


Usage

{{switch|{{{1|VALUE-TO-BE-TESTED}}}
|case a = {{{1}}} equals a
|case b = {{{1}}} equals b
|default = {{{1}}} equals neither a nor b
}}

where VALUE-TO-BE-TESTED is a parameter or a variable.

Caution: The tested value must not contain "|" or "=".