Please note that this is not a working tutorial but just an example of how to define a Rule Based variable.
When working with Rule based variables, you can expand the variable argument by adding conditions to a single statement, and/or have multiple statements to reflect different results. Note that each new condition can use the same variable trigger or a different variable trigger.
AND/OR statements will add a condition to the selected statement. Making the statement dependent on two or more conditions.
ELSE adds an alternative statement to the overall variable, and there is always an exception ELSE statement at the end of the argument so that any exceptions are handled with a preflight error or with a default value.