We are currently performing an upgrade to our software. This upgrade will bring MediaWiki from version 1.31 to 1.33. While the upgrade is being performed on your wiki it will be in read-only mode. For more information check here.

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[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.