Func42_PerformComparison

<< Click to Display Table of Contents >>

Navigation:  Modules > Asset Management > Software License Management > Authorization Analyzer (Complex license types) > AA Functions >

Func42_PerformComparison

Description

This function compares two operands based on the operator specified.

 

NOTE:  This function supersedes Function 29, which is deprecated.

 

Processing Notes

This function goes through the following steps to derive the required answer:

Compare the two operands and set the rule results based on the result of the comparison.

 

 

Inputs

 

Parameter

Explanation

Operand 1

A text value for comparison.  Supports tags as well as AA-specific tags.

Operand 2

A text value for comparison.  Supports tags as well as AA-specific tags.

Operator

The following operators will work only with operands that resolve to a number:>,<,<=, >=,+,-,*,and /

The following operators will work with operands that resolve to a number or text:  != or =

The following operators will treat the operands as text:  IN or LK.   (These two cases will search for the presence of Operand 2 IN/LK Operand 1.)

 

Outputs

 

Result

Result Explanation

Confidence Adjustment

Return Value

True

The comparison resulted in a true result

N

-1

False

The comparison resulted in a false result

N

0

Else

A non-supported operator was supplied

A processing error was encountered

When the operator is 'LK' and Operand 2 is blank (or is a tag that resolves to blank)

Y

0