ScarDoc

Start typing to search the SCAR reference.

Function
Other

std.Validate

Performs basic type-checking on [value]

On this page
std.Validate()

Description

e.g. foo = 7; std.Validate(foo, 'foo', T_NUMBER, false)

Returns

nil;nil; raises error when invalid

Source

Declared in the game's script sources at:

scar/standard.scar