Contains
This command checks whether a set of items (Collection, Vector, Listview) contains a specific item.
For non-primitive objects, the system checks whether exactly the same object is in the set, for primitive data types (integer, string), the system searches for the object with the same content.
Contains
Stack | Position | Description |
---|---|---|
Stack(In) | Top | a collection |
Top 1 | one object | |
Stack(Out) | Top | TRUE or FALSE |
determines whether the object on Stack-Top-1 is included as an item in the collection. This is either located on the stack-top or is reached from an object located on the stack via the access expression to be specified as a parameter.
Stack | Position | Description |
---|---|---|
Stack(In) | Top | |
Top 1 | one object | |
Top-x | ... | |
Top-n | ||
Top n-1 | one object | |
Stack(Out) | Top | TRUE or FALSE |
determines whether the object on Stack-Top-n-1 is contained as an element in an expanded vector.
Stack | Position | Description |
---|---|---|
Stack(In) | Top | Vector |
Top 1 | one object | |
Stack(Out) | Top | TRUE or FALSE |
determines whether the object on Stack-Top-1 is contained as an element in a collapsed vector on the stack at the position Top.
Contains(access expression)
Parameter: an access printout
Stack | Position | Description |
---|---|---|
Stack(In) | Top | Initial object |
Top 1 | one object | |
Stack(Out) | Top | TRUE or FALSE |
determines whether the object on Stack-Top-1 is included as an item in the collection. This is either located on the stack-top or is reached from an object located on the stack via the access expression to be specified as a parameter.
Note: A transaction begins.
Contains
Stack | Position | Description |
---|---|---|
Stack(In) | Top | an object box |
Top 1 | one object | |
Stack(Out) | Top | TRUE or FALSE |
An object box can be seen as the visual representation of a collection. It is also possible to determine whether the object on Stack-Top-1 is represented by the object box. Widget brings an object box onto the stack.