Skip to reading
PCA Script Programming

Builtins: Text and JSON

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
On this page

shuffle()#

Code example
shuffle(values)

Create a shuffled copy of an array.

Returns: New array; empty array for unsupported input.

Code example
shuffle(["red", "green", "blue"])

The supplied array is not shuffled in place.

lower()#

Code example
lower(text)

Convert text to lowercase.

Returns: Text.

Code example
lower("OPEN")

upper()#

Code example
upper(text)

Convert text to uppercase.

Returns: Text.

Code example
upper("archive")

trim()#

Code example
trim(text)

Remove whitespace from the beginning and end.

Returns: Text.

Code example
trim("  key  ")
Page 57 of 357Permalink
Go to page