Built-in functions

(Operations on types are described here)

System functions

getenv

Gets an environment variable. Equivalent to Java System.getProperty().

setenv

Sets an environment variable. Equivalent to Java System.setProperty().

time

Returns the current time as a String. The only format currently supported is HH:MM:SS

date

Returns the current date as a String. The only format currently supported is DD/MM/YY

position

Returns the index counter value of context forEach loop, the position of the current elements in the loop. Returns -1 if there is no loop.

count

Returns the index counter value of the nearest context forEach loop, taking filters into account. Returns -1 if there is no loop.

Output utility functions

The output utility functions are helpers for printing and controlling print output.

newline (n) | nl (n)

Prints one or more newlines

tab (n)

Prints 1 or more tabs

space (n)

Prints one or more spaces

indent ()

Increases indent length

undent () 

Decreases indent length