Template:Bool

From Fire Emblem Heroes Wiki
Jump to: navigation, search
Template-info.svg Documentation

Converts a case-insensitive string value to a boolean value.

  • 0, no, and false return 0.
  • 1, yes, and true return 1.
  • 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.