rrContains (deprecated)

Uses the Smart Parameters that you enter as the parameter to locate and compare the values of two objects' variables. This action has been deprecated and is scheduled to be removed in a future release. It is recommended that you no longer use this action. Instead, use the rrContains action in the RuleRunnerLogic action library.

Syntax

bool rrContains(string object1, string  object2, string caseSensitive)

Parameters

string object1

string object2

string caseSensitive

Parameters

Two Smart Parameters
  1. A value or a smart parameter, which is a reference to a value.
  2. A value or a smart parameter, which is a reference to a value, that can contain the value from argument 1.
Note:

Either reference can specify a variable of the calling object (the bound object of the Document Hierarchy). Alternatively, both references can identify a variable of an object that is a parent or child of the calling object.

Either parameter is optional. If a parameter is not specified, it defaults to the calling object. If the calling object is a field, it uses the field value. For batch, document, and page objects, it uses a variable named Text, creating the variable if it does not exist.

Returns

True, if the value of argument 1 is found in the value of argument 2. Otherwise, False.

Level

All.

Details

Uses the Smart Parameters that you enter as the parameter to locate and compare the values of two objects' variables.

Example
rrContains("Dr","@P.Name")
This example shows how a value Dr is used as direct input, and the Page object's Name variable is solicited. The two values are then compared. The action returns False if the value Dr is not found in the value that is solicited from @P.Name.