Skip to main content

Overview

This function lets you cast (treat) an object, variable, or value as a boolean.

Parameters

asBool(object)
  • Object: The object, variable, or value to convert to boolean.

Example

asBool(1)
Returns true.
asBool(0)
Returns false.
I