Skip to content

ConvertToBoolean Function

Nilesh Ghodekar edited this page Jan 13, 2016 · 3 revisions

Syntax

bool ConvertToBoolean(value:string) / bool ConvertToBoolean(value:integer)

Description

Converts a string or a number to a boolean value.

Remarks

If the input value is null, the function returns false.

For the integer input, if the number is not zero, the function returns true, otherwise it returns false.

For the string input, if the string is "true", the function returns true, if the string is "false", the function returns false. If the string is anything else, an exception is thrown.

Supported Version

2.14.611.0 and later

Examples

And([//WorkFlowdata/IsAdmin],ConvertToBoolean([//Target/IsInAD]))

Clone this wiki locally