The Switch Expression is a way to select from multiple values in an existing variable to determine an expression to use.
The syntax is simple:
?VariableName value1:"expression1" value2:"expression 2" *:"default expression"
This is best described with an example where a user's credential file should have up to two variable qualifiers and one fixed qualifier depending on the value of a variable named "Type". In this example, there are three SAML 2.0 assertions (other values can be passed as in the query string or posted values to a connection).
Type - The Type of Signin--State, County or neither
State - The State the user is responsible to sign-in for
County - The County the user may be responsible for
When Type is "County" both the "State" and "County" is needed...
SetField=userQualifier,?Type State:"{{State}}" County:"{{State}}_{{County}} *:""
Note the * as a default setting no qualifier at this user will not be signing-in for any State or County...