To refer to an item by name:
item-name->item
To refer to an item by a symbolic expression:
the class-name [local-name] named by symbolic-expression->item
the quantifier, this generic reference expression produces the one and only item of the specified class whose item name is produced from symbolic-expression. This expression indirectly references an item. With the
any quantifier, this expression produces the set of items of the specified class whose item name is produced from symbolic-expression.
To refer to an item by a variable or a parameter name:
{g2-variable | g2-parameter}
-> {item | value}
To refer to an item by its location upon a workspace:
the class-name [local-name] upon kb-workspace->item
the quantifier, this generic reference expression produces the one and only item of the specified class that G2 finds upon the specified workspace. With the any quantifier, this expression produces the set of items of the specified class upon the specified workspace.
To reference an item by identity:
item is [not] the same object as item->truth-value
for any tank T that is downstream-of water-outflow-2
if tank-1 is the same object as T then
inform the operator that
"[the public-name of tank-1] is downstream of [the public-name of
water-outflow-2]."
if rule checks whether tank-1 is among the items that participate in a downstream-of relation with the item water-outflow-2.
To reference an item through its associated window:
this window->g2-window
Action attribute of an action button or in the Action attribute of a user menu choice. For example, this action affects the workspace that contains an action button that, when pressed, causes this action's
this window expression to be evaluated:
hide this workspace on this window
To reference an item through its workspace:
this workspace->kb-workspace
this workspace expression is evaluated as the result of selecting a user menu choice, it produces the workspace that contains the user menu choice, not the workspace that contains the selected item.
To reference the item from whose menu a user menu choice is selected:
the item->item
Action attribute of a user menu choice, to refer to the item from whose menu this user menu choice is selected. The
the item expression is valid regardless of the class named in the user menu choice's Applicable-class attribute. For example, the next figure shows a user menu choice whose
Action attribute specifies the action rotate the item by 90 degrees.
![]() |