wire.toBoolean
function to determine if a value of any type is truthy. Use the second parameter to return a default if the value passed in is not able to be evaluated.bool
variable to true
because the string "true"
will evaluate to true
.bool
variable to true
because the value null
passed in cannot be evaluated as a proper Boolean. The function defaults to the second parameter true
. If the second parameter was not passed in, the function would return false
.wire.inNumeric
function. wire.guid
class.