Skip to main content

bool.tofloat()

Converts a bool to a float

Availability

Device + Agent

Returns

Float — 1.0 for true or 0.0 for false

Description

This method returns either 1.0 or 0.0 depending on whether the target bool is true or false.

Example Code