Skip to content
ezeioDocs
  1. Reference
  2. Expressions
  3. Math and logic

Boolean

Returns 1 if the value a is larger than 0. Returns 0 if a is zero or negative.

bool( a )#

Returns 1 if the value a is larger than 0. Returns 0 if a is zero or negative.

Description#

bool( a )

Returns 1 if the value a is larger than 0. Returns 0 if a is zero or negative.

Parameters#

a Any value

Return value#

If a>0, returns 1. Else returns 0.

Example usage#

bool(3)

Returns 1.

Last updated Sep 2, 2019