Website logo
Navigate through spaces
ChartHop documentation
⌘K
ChartHop Help Center
Getting around in ChartHop
ChartHop for Employees
Implementing ChartHop
ChartHop for Administrators
Carrot reference
ChartHop for Developers
Partners
Release notes
Resources
Docs powered by Archbee
Website logo
Carrot reference
...
Elements of Carrot expressions
Functions

boolean()

Converts supported datatypes into a Boolean, equal to either true or false.

Syntax

boolean(value)

  • value - the value to be evaluated by the function.
  • Return type: Boolean.

Sample usage

boolean(0) returns false.

boolean("yes") returns true.

Supported data types

Input type

Return type

Logic

String

Boolean

String values that start with y or t return true. String values that start with n or f return false.

Number

Boolean

Number values equal to 0 return false. Non-zero Number values return true.

Boolean

Boolean

Boolean values remain unchanged.

Unsupported type

Null

Unsupported data types return Null.



Updated 04 Oct 2023
Did this page help you?
PREVIOUS
asOf()
NEXT
compHistory()
Docs powered by Archbee
TABLE OF CONTENTS
Syntax
Sample usage
Supported data types
Docs powered by Archbee