Skip to main content

bool.tointeger()

Converts a bool to an integer

Availability

Device + Agent

Returns

Integer — 1 for true or 0 for false

Description

This method returns either 1 or 0 depending on whether the target bool is true or false.

Example Code