std.lingo

Provides a rudamentary scripting language for use in documents.

  • Author: Edward Jones
  • Date: 2021-09-17

Source file

cond

Takes input of value and evaluates it as a condition.

  • Param c: Lua value or core pointer to evaluate as a condition

Returns: false if c is false or is the empty string, ‘0’ or ‘false’ (case-insensitive), otherwise true

cond = (c) -> ...

toint

Converts a value to a condition integer (for a more compact representation.

  • Param b: A value to check

Returns: 0 if b is 0, the empty string, false or nil, otherwise 1

toint = (b) -> ...