toboolean() Function
This function may not be compatible with all features of Appian. For details, see the Feature Compatibility section below.

Function

toboolean( value )

Converts a value to Boolean.

Parameters

Keyword Type Description

value

Any Type

Value to convert.

Returns

Boolean

Usage considerations

Understanding results

A 0 returns false; all other numbers return true.

Strings beginning with t, T, y, Y, or 1 return true; all other strings return false.

Using toboolean() with arrays

When operating on arrays, it is not necessary to use apply with toboolean. If multiple parameters are passed, or one parameter is an Array, then a Boolean Array is returned.

Examples

toboolean(0) returns false

toboolean(0,1,0) and toboolean({0,1,0}) both return {false,true,false}

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
Feature Compatibility Note
Portals Compatible
Offline Mobile Compatible
Custom Record Field Expressions Compatible
Open in Github Built: Fri, Aug 12, 2022 (10:01:45 AM)

On This Page

FEEDBACK