Skip to main content

Types

These functions allow you to check the type of a value, such as whether it is a number, string, or array. See Learn > Language > Types for a broader overview of the types available in Easel.

IsArray​

x.IsArray -> boolean
IsArray(x) -> boolean

Returns true if the value is an array, false otherwise.

IsAsset​

x.IsAsset -> boolean
IsAsset(x) -> boolean

Returns true if the value is an Asset, false otherwise.

IsAssetArray​

x.IsAssetArray -> boolean
IsAssetArray(x) -> boolean

Returns true if the value is an Asset Array, false otherwise.

IsBool​

x.IsBool -> boolean
IsBool(x) -> boolean

Returns true if the value is a boolean, false otherwise.

IsCallback​

x.IsCallback -> boolean
IsCallback(x) -> boolean

Returns true if the value is a Callback, false otherwise.

IsCategory​

x.IsCategory -> boolean
IsCategory(x) -> boolean

Returns true if the value is a Category, false otherwise.

IsColor​

x.IsColor -> boolean
IsColor(x) -> boolean

Returns true if the value is a Color, false otherwise.

IsEntity​

x.IsEntity -> boolean
IsEntity(x) -> boolean

Returns true if the value is an Entity, false otherwise.

IsFlag​

x.IsFlag -> boolean
IsFlag(x) -> boolean

Returns true if the value is a Flag, false otherwise.

IsKeycode​

x.IsKeycode -> boolean
IsKeycode(x) -> boolean

Returns true if the value is a Keycode, false otherwise.

IsMap​

x.IsMap -> boolean
IsMap(x) -> boolean

Returns true if the value is a Map, false otherwise.

IsNull​

x.IsNull -> boolean
IsNull(x) -> boolean

Returns true if the value is null, false otherwise.

IsNullish​

x.IsNullish -> boolean
IsNullish(x) -> boolean

Returns true if the value is null or undefined, false otherwise.

IsNum​

x.IsNum -> boolean
IsNum(x) -> boolean

Returns true if the value is a Number, false otherwise.

IsPlayer​

x.IsPlayer -> boolean
IsPlayer(x) -> boolean

Returns true if the value is a player Entity, false otherwise.

IsRange​

x.IsRange -> boolean
IsRange(x) -> boolean

Returns true if the value is a Range, false otherwise.

IsString​

x.IsString -> boolean
IsString(x) -> boolean

Returns true if the value is a String, false otherwise.

IsSymbol​

x.IsSymbol -> boolean
IsSymbol(x) -> boolean

Returns true if the value is a Symbol, false otherwise.

IsUndefined​

x.IsUndefined -> boolean
IsUndefined(x) -> boolean

Returns true if the value is undefined, false otherwise.

IsVector​

x.IsVector -> boolean
IsVector(x) -> boolean

Returns true if the value is a Vector, false otherwise.