Template:Among: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{1|}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}=1|}}</includeonly><noinclude>{{pp-template|small=yes}}''Usage:'' <nowiki>{{among|key|string1|...|stringn}}</nowiki> | <includeonly>{{#switch:{{{1|}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}=1|}}</includeonly><noinclude>{{pp-template|small=yes}}''Usage:'' <nowiki>{{among|key|string1|...|stringn}}</nowiki> | ||
Produces '''1''' (equivalent to a true condition) if ''key'' is equal to any of the subsequent parameters; otherwise produces the empty string (false condition). Maximum number of parameters (excluding ''key''): 6.</noinclude> | |||
Revision as of 13:14, 3 February 2024
Usage: {{among|key|string1|...|stringn}} Produces 1 (equivalent to a true condition) if key is equal to any of the subsequent parameters; otherwise produces the empty string (false condition). Maximum number of parameters (excluding key): 6.