CONTAINS
Parameters
Order | Name | Type | Desc |
---|---|---|---|
1 | list | any | The list to search through |
2 | item | any | The item to search for |
Returns
Returns a const.
Description
This function returns 1 if item is in the list. Otherwise it returns 0
Note that this function can be simulated with the EQUAL command.
Example
To demonstrate the function, let's look at a simple example.
'TE101' ASSET RELS 'Location' RELATIONSHIP CONTAINS [ 'YES' ] [ 'NO' ] IF
This function will return 'Yes' if the asset TE101 is part of the Location hierarchy, or “No” if it isn't.