Difference between revisions of "Demo:SwitchStatement7"
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{#invoke:CodeWrapper| returnHTMLText |{{:{{PAGENAME}}}} }} | {{#invoke:CodeWrapper| returnHTMLText |<syntaxhighlight lang=HTML>{{:{{PAGENAME}}}} </syntaxhighlight>}} | ||
</noinclude> | </noinclude> |
Revision as of 09:23, 19 May 2022
{{#switch: {{#expr: 3+2*1}} | 1 = one | 2 = two | 3|4|5 = any of 3–5 | 6 = six | 7 = {{uc:sEveN}} <!--lowercase--> | #default = other }}
The above text can be better visualized as follow:
<nowiki>{{#switch: {{#expr: 4+2*1}}
| 1 = one
| 2 = two
| 3|4|5 = any of 3–5
| 6 = six
| 7 = {{uc:sEveN}} <!--lowercase-->
| #default = other
}}</nowiki>
'"`UNIQ--syntaxhighlight-00000003-QINU`"'