Full syntax, types, and module reference:
#define and #include (file and plugin)try / catchMathException - catch with catch (MathException e).ArrayException - catch with catch (ArrayException e). e.code holds the attempted index.#include "file.ks" is fully supported with transitive includes and include-guard deduplication. See Preprocessor.{ } block has its own scope. Variables declared inside if, else, while, for, or foreach blocks are not visible outside them. Outer-scope variables remain readable and writable from inside any nested block. See Control flow - Block scope.Math:Random uses srand/rand; not cryptographically secure. Use Math:Seed(n) for reproducible sequences.String:Mid uses 1-based start index (like BASIC), not 0-based.