Text
| Function | What it does |
|---|---|
lower(text) / upper(text) | Lowercase / uppercase |
trim(text) | Remove spaces at the ends |
replace(text; search; replace) | Replace (also with Regex: /โฆ/g) |
substring(text; start; end) | Cut text (starts at 0!) |
length(text) | Length |
split(text; separator) | Text โ array |
contains(text; search) | Does it contain |
capitalize(text) | Capitalize the first letter |
md5 / sha256 | Hash |
Math
| Function | What it does |
|---|---|
round(n) / ceil / floor | Rounding |
formatNumber(n; decimals; dec; thousands) | 1,234.50 |
parseNumber(text; dec) | Text โ number |
sum(array) / average(array) / max / min | Calculations on an array |
Date
| Function | What it does |
|---|---|
now | Now |
formatDate(date; "DD/MM/YYYY HH:mm") | Date โ text |
parseDate(text; "DD/MM/YYYY") | Text โ date |
addDays(date; n) / addHours / addMonths | Date arithmetic |
setTimezone / formatDate(...; ...; "Asia/Jerusalem") | Time zone |
dateDifference(d1; d2; unit) | Difference (in newer versions) |
Array
| Function | What it does |
|---|---|
first / last(array) | First / last item |
get(array; n) | Item by position (starts at 1) |
map(array; key) | Pull a field from every item |
join(array; sep) | Array โ text |
length(array) | Number of items |
sort / reverse / distinct / slice / merge / flatten | Array processing |
deduplicate(array) | Remove duplicates |
General
| Function | What it does |
|---|---|
if(cond; a; b) | Condition |
ifempty(value; fallback) | Default value |
switch(value; c1; v1; c2; v2; default) | Multiple choice |
get(object; path) | Access a field by path |
toString / toArray / toCollection | Conversions |
emptystring / emptyarray / null | Empty values |
Note
- In Make, arguments are separated with ; (semicolon), not a comma.
- Arrays start at 1, but substring counts characters from 0.
- Add functions from the panel (tabs ฦ, ๐ , ๐ค, [ ]) โ that way the brackets are always right.