rrCompareCase

Runs a comparison of two strings or smart parameters to see whether they are identical.

Syntax

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

Parameters

string object1

string object2

string caseSensitive

Parameters

Three 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 for comparison.
    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 that is called Text, creating the variable if it does not exist.

  3. True runs a case-sensitive compare. False runs a case insensitive compare. If not specified, the default is False.

Returns

False If the compared values do not match. Otherwise, True.

Level

All.

Details

Runs a comparison of two strings or smart parameters to see whether they are identical. The comparison can be run as case sensitive or case insensitive.
Example
rrCompareCase("Main_Job","JOBID","False")

This example compares the string "Main_Job" to the current Job ID. The comparison is case insensitive. If the current Job ID is "MAIN_JOB", the action returns True.

rrCompareCase("Main_Job","JOBID","True")

This example compares the string "Main_Job" to the current Job ID. The comparison is case-sensitive. If the current Job ID is "MAIN_JOB", the action returns False.