2.390 .type

This specifies the data type of a global variable or a user-defined attribute.

For global variables and user-defined attributes, the attribute defines the data type of the variable or the user-defined attribute is returned.

With user-defined attributes, the request is made by indicating the attribute to be queried as index, e.g. .type[<user-defined attribute>].

For rules and functions, the attribute returns

  • with index 0 or without index:

    the return value type

  • with index >= 1:

    type of the respective parameter

If no parameter exists for the index, the return value is void.

At the thisevent object, the attribute queries the type of event.

Definition

  • Data type

    datatype

    enum (thisevent)

  • Access

    get, set

    get (function, rule, thisevent)

  • changed event

    yes

See also

Chapters “Functions” and “Named Rules (Subprograms)” in manual “Rule Language”

Chapter “Event Object thisevent”in manual “Rule Language”