Description: Evaluate each pair of arguments up to the last one as a (class, value) tuple, returning value if class is set.
If none are set, returns the last argument.
Special behavior actuating function with undefined variable references when 3 parameters are in use added in 3.7.4 and 3.9.1.