rrCompareNotCaseLength

Negates the running of the rrCompareCaseLength action. You can run this action in instances when two of the values are different.

Syntax

bool rrCompareNotCaseLength(string object1, string object2, 
string caseSensitive, string length, string fromStart)

Parameters

string object1

string object2

string caseSensitive

string length

string fromStart

Parameters

Five 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.
  3. True runs a case-sensitive compare. False runs a case insensitive compare.
  4. An integer for the number of characters to compare. If the length is 0, the entire string is compared.
  5. True compares from the start of the string. False compares from the end of the string.

Returns

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

Level

All.

Details

Uses the Smart Parameters that you enter as the parameter to locate and compare the values of two object's variables. The comparison can be limited to a specified number of characters from the start or the end of the string. The comparison can be run case-sensitive or case insensitive.
Example
rrCompareNotCaseLength("Main","@JOBID","False",4,"True")

This example compares the string "Main" to the current Job ID. Only the first four letters are compared and the compare is case-sensitive. If the current Job ID is "MAIN_JOB", the action returns False.

rrCompareNotCaseLength("Main","@JOBID","True",4,"True")

This example compares the string "Main" to the current Job ID. Only the first four letters are compared and the compare is case-sensitive. If the current Job ID is "MAIN_JOB", the comparison does not match due to case differences so the action returns True.

rrCompareNotCaseLength("Main Line","Main Job","True",4,"True")

This example compares the string "Main Line" to the string "Main Job". The compare is case-sensitive and only the first four letters are compared. The comparison matches so the action returns False.

rrCompareNotCaseLength("@P.ScanSrcPath","GOOD.BMP","False",8,"False")

This example runs a case insensitive compare of the last 8 characters of the ScanSrcPath variable to find the last 8 characters of the string "GOOD.BMP". If the value of ScanSrcPath is "c:\test\testvalidate\images\good.bmp", the comparison matches so the action returns False.