CONTAINS

Parameters

OrderNameTypeDesc
1listanyThe list to search through
2itemanyThe 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.

See Also