One
One member of a set or a list, or null when there is none: for a cloud set one of its members, read on the server (useful to locate a single object); for a list its first item. Capitalized.
Runs on: either side: the compiler places the statement that calls it where the values it uses live.
Format:
One(set_or_list)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| set_or_list | mixed | the cloud set, or the list |
Returned Value:
| Type | Description |
|---|---|
| mixed | a member, or null |
Examples
me = One(subset(cloudobjects_of_type("profile"), "user", user_name))