any

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
any
Summary

Designates a randomly chosen member of a set.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
local wordOfTheDay
put any word of field "Dictionary" into wordOfTheDay
go to any card -- goes to a random card in the stack
select any button
RelatedKeyword: first, last
Function: random
Glossary: keyword, random, chunk expression, chunk, object
Description

Use the any keyword to specify a random object of a specified type, or to designate a random chunk in a chunk expression.

The any keyword does not examine every member of a set; it specifies just one member of the set, randomly chosen. For example, the expression

if myString is in any field

checks whether myString is in a randomly chosen field, not whether myString is somewhere in one of the fields on the card.

Tagsdatabase