Template:CheckTrueFalse: Difference between revisions

From Shadow Chronicles - Game Master
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
   {{#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>
   }}
   }}
  }}|
  }}
|
  {{#if:{{{2|}}}|
  {{#if:{{{2|}}}|
   {{#ifeq:{{{1|}}}|true|true|
   {{#if:{{{1|}}}|
   {{#ifeq:{{{1|}}}|false|false|<strong class="error">Error! Default boolean only support boolean value of true or false.</strong>
   {{#ifeq:{{{1|}}}|true|true|
  }}
    {{#ifeq:{{{1|}}}|false|false|<strong class="error">Error! Default boolean only support boolean value of true or false.</strong>
  }}|false
    }}|false
}}|
{{#if:{{{2|}}}|
  {{#ifeq:{{{1|}}}|true|true|
  {{#ifeq:{{{1|}}}|false|false|<strong class="error">Error! Default boolean only support boolean value of true or false.</strong>
   }}
   }}
   }}
   }}
  }}|false
  }}
}}</includeonly><noinclude>This support a true or false value with default false (can be changed).  
}}</includeonly><noinclude>This support a true or false value with default false (can be changed).  
==Example use==
==Example use==

Revision as of 22:32, 11 March 2017

This support a true or false value with default false (can be changed).

Example use

{{checkTrueFalse|true}}

{{checkTrueFalse|false}}

{{checkTrueFalse||true}}

{{checkTrueFalse|}}

{{checkTrueFalse|false|true}}

{{checkTrueFalse|nottrue|}}

{{checkTrueFalse||nottrue}}


true


false





false


Error! Condition only support boolean value of true or false.