2.318 .self
With .self an object itself is addressed. In most cases this can be achieved by simply using the identifier of an object. Sometimes, however, an attribute is necessary. In these cases .self may be used.
For instance, using the identifier of a global variable in Rule Language accesses the value of the variable. An access to the variable as object, e.g. to query or change its data type, can be accomplished through .self.
Definition
-
Data type
object
-
Access
get
Example
dialog Dialog variable integer Answer := 42; on dialog start { print Answer; // output is "42", that is the value print Answer.self; // output is "variable Dialog.Answer", // that is the variable itself }