Module:Bool/doc

From Fire Emblem Heroes Wiki
< Module:Bool
Revision as of 17:55, 24 July 2019 by HertzDevil (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is the documentation page for Module:Bool

Converts a case-insensitive string value to a boolean value. Exposes a single function, toboolean, which accepts a single argument, passes it through tostring, and returns either a boolean or nil:

  • The strings 0, no, and false return false.
  • The strings 1, yes, and true return true.
  • All other values return nil.

This module is the Lua counterpart of Template:Bool.