Look Up Item by Value Assertion

The Look Up Item by Value Assertion scans a multivalued context variable to find a specified value. If the value is found, the index position is returned in another context variable.
gateway90
The
Look Up Item by Value Assertion
scans a multivalued context variable to find a specified value. If the value is found, the index position is returned in another context variable.
Example
:
${Variable1
} contains the value you are searching for:
book
${Variable2
} is a multivalued variable that contains the strings:
magazine, book, newspaper
${Variable3
} is populated the lookup result, which is
1
Remember, multivalued context variables use zero-based positioning. Thus, the first item in the list is always item "0".
Using the Assertion
  1. Do one of the following:
    • To add the assertion to the Policy Development window, see Adding an Assertion.
    • To change the configuration of an existing assertion, proceed to step 2 below.
  2. Right-click
    Look Up Item by Value
    in the policy window and select
    Look Up Item by Value Properties
    or double-click the assertion in the policy window. The assertion properties are displayed.
  3. Complete the properties:
    Setting
    Description
    Find value of variable named
    Enter the value that you are searching for.
    Search within multivalued variable named
    Enter the multivalued context variable that will be searched.
    Store matching index(es) in variable named
    Enter the name of the variable that holds the lookup result.
    If this variable already exists, it is overwritten. If it does not already exist, it is created.
    When entering the variable name in all three fields, you do not need to enclose them within the "${ }" characters. For example, "variable" suffices instead of "${variable}".
  4. Click [
    OK
    ].