Skip to content
Functions

Functions

Orchard exposes 77 functions in every expression — variable defaults, provider configs, component inputs, action attributes, scenario outputs, component outputs, and teardown bodies. All names use lowercase compound words with no separators (jsonencode, timeadd, timeseries, …).

Functions marked impure may return a different value on each call: random values, IDs, the clock and the environment. Random values follow the run’s seed; see random values and seeds.

GroupFunctions
Collectionsconcat, contains, distinct, element, keys, length, lookup, merge, range, reverse, slice, sort, values, zipmap
Encodingcsvdecode, jsondecode, jsonencode
Environmentenv
Fakefake, faketemplate
Identitycuid2, ksuid, nanoid, objectid, snowflake, typeid, ulid, uuid, uuidv7, xid
Mathabs, ceil, floor, log, max, min, pow, signum
Randomrandbool, randchoice, randfloat, randhex, randint, randnormal, randsample, randshuffle, randstring, randweighted
Regexregex, regexall
Setssetintersection, setproduct, setsubtract, setunion
Stringschomp, format, formatlist, join, lower, replace, split, strlen, substr, title, trim, trimprefix, trimspace, trimsuffix, upper
Timeformatdate, now, timeadd, timerandom, timesequence, timeseries, timesub, timeunix