This function is a shortcut of one of the corresponding calls:
getVar(name).toBoolean()
getVar(scope, name).toBoolean()

See Also:

getVar(), toBoolean()