Template:CheckTrueFalse: Difference between revisions
Jump to navigation
Jump to search
GameMaster (talk | contribs) No edit summary |
GameMaster (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if:{{{1|}}}|<!-- | ||
{{#if:{{{1|}}}|<!-- | |||
-->{{#ifeq:{{{1|}}}|true|true|<!-- | -->{{#ifeq:{{{1|}}}|true|true|<!-- | ||
-->{{#ifeq:{{{1|}}}|false|false|<strong class="error">Error! Condition only support boolean value of true or false.</strong>}}<!-- | -->{{#ifeq:{{{1|}}}|false|false|<strong class="error">Error! Condition only support boolean value of true or false.</strong>}}<!-- |
Revision as of 12:05, 17 April 2021
This support a true or false value with default false (can be changed).
Example use
{{checkTrueFalse|true}} // true {{checkTrueFalse|false}} // {{checkTrueFalse||true}} // {{checkTrueFalse|}} // {{checkTrueFalse|false|true}} // {{checkTrueFalse|nottrue|}} // {{checkTrueFalse||nottrue}} //