get
get
looks up attributes on either objects or areas.
Context | Type |
---|---|
Input | set of objects or a set of areas |
Output | collection of numbers or a collection of strings |
Examples
Finds all destination attributes for all airplanes (objects with type attribute equal to 'airplane') in the realm:
objects(type="airplane").get("destination")
Notes
The output may contain many values. Usually you'll use get
on the right hand side of a comparison. If you are using it in the main when
clause, you should think about what behaviour you're expecting when there are duplicate values. You may want to use distinct
to remove duplicates.