Skip to content

Object Functions: Typecasting and Type Introspection

Richard Kettering edited this page Jun 20, 2016 · 2 revisions
  • decimal(value) -> decimal — converts the value to a decimal
  • integer(value) -> int — converts the value to an integer
  • is_bool(any var) — Returns true if the variable passed in is true or false.
  • is_decimal(any var) — Returns true if the variable passed in is a decimal.
  • is_int(any var) — Returns true if the variable passed in is an int.
  • is_map(any var) — Returns true if the variable passed in is a map.
  • is_null(any var) — Returns true if the variable passed in is null.
  • is_number(any var) — Returns true if the variable passed in is an integer or a decimal.
  • is_string(any var) — Returns true if the variable passed in is a string.
Clone this wiki locally