AND vs OR Conditions in Variations

When defining variations with multiple Context elements, the elements are applied with an AND condition. This means that all of the Context values must match for the variation to be selected.

However, if you provide multiple Context elements with the same property name and different values, these elements will be considered with an OR condition instead:

<WebActionVariation name="PhoneBook">
<Context property="RoleName" value="Manager"/>
<Context property="RoleName" value="Supervisor"/>
<Context property="EntName" value="SampleEnterprise"/>
<Context property="OrgName" value="SampleOrg"/>
<URL>/oms/public/phonebookformanager.html</URL>
</WebActionVariation>

In the example above, the condition could be read as "(RoleName equals Manager or RoleName equals Supervisor) and EntName equals SampleEnterprise and OrgName equals SampleOrg".