Template:Bool/doc

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[edit source]

{{Bool|True}}
1
{{Bool|FALSE}}
0
{{Bool|2}}
{{#ifexpr:{{Bool|yes}}|true value|false value}}
true value

Scribunto[edit source]

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.