Converts a case-insensitive string value to a boolean value.
0
,no
, andfalse
return0
.1
,yes
, andtrue
return1
.- All other values return the empty string.
Examples[]
{{Bool|True}}
1
{{Bool|FALSE}}
0
{{Bool|2}}
{{#ifexpr:{{Bool|yes}}|true value|false value}}
true value
Scribunto[]
The Lua equivalent of this template is the function require 'Module:Bool'.toboolean
.
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.