Skip to main content

$(pick)

$(pick option | option | option)

Displays one of the |-separated options, chosen at random. Great for giving chat responses and alerts some variety.

The choice is made once each time the template resolves: once per run in a flow, and again when the underlying data changes in an overlay (not every second).

Examples​

$(pick Welcome | Hey there | Yo)

Will display one of "Welcome", "Hey there" or "Yo"

$(pick Welcome | Hey there | Yo), {{username}}!

Will display e.g. "Hey there, NightBot!"