|
||||||||||||
|
|
||||||||||||
Casting operatorsCasts are used to convert the value of an expression to the desired type. It is marked with parentheses containing the name of the type before the expression. Possible casts are: boolean, converts
to anvil.lang.boolean. Same as
the call to int, converts to anvil.lang.int. Useful only with integers, floats, and strings. float, converts to anvil.lang.float. Useful only with integers, floats, and strings. string, converts
to anvil.lang.string. Same as
the call to `` cast-expr := "(" "boolean" ")" expr cast-expr := "(" "int" ")" expr cast-expr := "(" "float" ")" expr cast-expr := "(" "string" ")" expr
See also
| Expressions
| Grammar
|
||||||||||||
|
|
||||||||||||