-
Notifications
You must be signed in to change notification settings - Fork 119
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 istrue
orfalse
. -
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.
More help can be found via chat in Frogatto's Discord server, or by posting on the forums. This wiki is not a complete reference. Thank you for reading! You're the best. 🙂