lookup

lookup returns an array of cloud objects in the given cloud set

Runs on: the server only. The statement that calls it runs on the server, and its result is a server-side value: the server keeps it, the device never writes it, and it is copied to the device only when a device statement reads it.

Format:

lookup(set)

Parameters:

Parameter Type Description
set cloudset the set to drap objects from

Returned Value:

Type Description
array an array of cloudobjects

Examples

special_objects = lookup(subset(everything(),"is_something_special",true)