Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Expressions > Primaries > Defined expression

Defined expression

Defined expression is taken as an identifier, possibly followed by one more mores accessors, and checks if the referenced value exists, i.e., it is not ``undefined´´. Operator returns boolean to indicate that the exact behaviour is specific to the class.

This operation might invoke class callbacks ``_check(index)´´, ``_defined(name)´´ or ``_defined_<name>()´´.

  defined-expr := "defined" identifier  
  defined-expr := "defined" "(" identifier ")" 
See also  | Primaries  | Grammar
Contributes notes:
Add a note
What's new | Anvil