object
finds objects within the realm, and allows them to be filtered based on their attributes
object
finds objects in the realm, and allows them to be filtered based on their attributes.
Context | Type |
---|---|
Input | any (ignored) |
Output | set of objects |
Examples
Finds all objects in the realm:
object()
Finds all objects in the realm that have a value attribute with a value less than 100000, a type attribute equal to "airplane" and a capacity attribute greater than 10:
object(value < 100000, type = "airplane", capacity > 10)
Notes
Usually a call to object
will be the first call in a function chain as it ignores any previous context.
In attribute comparisons, the right hand side can be an expression (e.g. object(type="dial").get("value")
). If the
expression evaluates to a set of multiple values (e.g. if in this example, there were multiple dials), then greater than
and less than use the average of the values from the expression to compare against.