ApasScript.

Strings

str

Any value as text, exactly as it prints: str(1/3) is "1/3". A number written as a decimal, str(1.2), or rounded to places, str(round(x, 2)), reads as a decimal ("1.2", "0.25") when its decimal ends.

num

Reads text as a number, exactly: num("3/4") is 3/4, num("2.5e3") is 2500. A decimal() value is the number its digits name (num(decimal(5, 2))*2 is 10), a number itself.

upper

The text in capital letters.

lower

The text in small letters.

trim

The text without spaces at either end.

split

A list of the pieces of the text between separators (runs of spaces when none is given; "" splits into characters).

join

The items of an array or list as one text, with a separator between them.

replace

The text with every occurrence of one piece replaced by another.

startsWith

Whether the text begins with the given piece.

endsWith

Whether the text ends with the given piece.

param

The text the page passed for the name with this run (set_param "name=value" before the run, the channel a slider's value comes by), else the default, else "". Not a control: nothing is shown and nothing is asked; the page decides what it passes. Works in the public wasm as in the cloud (not gated). The usual use is the kept chart layout, applyLayout(g, param("layout", "")), which the browser plotter's exportSvg passes under that name; a symbol, an interval or a title can come the same way.