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
- 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.
- Right-clickLook Up Item by Valuein the policy window and selectLook Up Item by Value Propertiesor double-click the assertion in the policy window. The assertion properties are displayed.
- Complete the properties:SettingDescriptionFind value of variable namedEnter the value that you are searching for.Search within multivalued variable namedEnter the multivalued context variable that will be searched.Store matching index(es) in variable namedEnter 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}".
- Click [OK].