Skip to reading
PCA Script Programming

Builtins: Math and randomness

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

boolean() and aliases#

Code example
boolean(value)

Convert using runtime truthiness.

Returns: Boolean.

Aliases: bool()

Code example
boolean(1)

A nonempty text such as "false" is not an English Boolean parser. Compare normalized input to an accepted word yourself.

min()#

Code example
min(a, b, ...)

Find the smallest of separate numeric arguments.

Returns: Number/value selected by numeric comparison.

Code example
min(8, 3, 11)

This is not an array reducer: loop through an array when its length is dynamic.

max()#

Code example
max(a, b, ...)

Find the largest of separate numeric arguments.

Returns: Number/value selected by numeric comparison.

Code example
max(8, 3, 11)
Page 53 of 357Permalink
Go to page