Skip to content

IntTableGet

Class Documentation

Edit documentation

A getter that reads a script variable as a 32-bit integer. An Int variable is returned as it is, and a Float variable is truncated toward zero. For any other kind, or a missing variable, the getter returns Default if it is set and fails with a script error if it is not. See ScriptTableGet for Table and Var.

Properties

Default

Option<I32> = null
Edit documentation

The integer the getter returns if the variable is missing or is neither an Int nor a Float. Unset, the getter fails instead.