I'm having a bit of problem with the Select Case logical expression in my formula. I have several parameter parameter fields that return arrays of values (using the Allow Multiple Values option). I'm trying to assign a group name based on which parameter array the item is found. Here's my formula:
Logically, this should work, but the users do not match the groups assigned in the parameter fields. I can get this to work within an if/else if/else statement, but I was hoping to use the select case statement as an alternative.
Any help would be greatly appreciated.
- Glen
Code:
select {Users.swLogin}
case {?Group1}[1] to {?Group1}[ubound({?Group1})] :
"Group 1"
case {?Group2}[1] to {?Group2}[ubound({?Group2})] :
"Group 2"
case {?Group3}[1] to {?Group3}[ubound({?Group3})] :
"Group 3"
default :
"(Not Grouped)";
Logically, this should work, but the users do not match the groups assigned in the parameter fields. I can get this to work within an if/else if/else statement, but I was hoping to use the select case statement as an alternative.
Any help would be greatly appreciated.
- Glen