- Index
- »
- axon
- »
- func:parseBool
def
func:parseBool
parseBool(val, checked: true)
Parse a Str into a Bool, legal formats are "true" or "false. If invalid format and checked is false return null, otherwise throw ParseErr.
Examples:
parseBool("true") parseBool("bad", false)