Verify text from a range of acceptable values

@Kevin_McAndrew I would try to go with a CASE block first to see if that works, like the below link:

In your case, the Case switches would be “One”, “Two” or “Three” and perhaps have the “default” switch have a failure statement or something. Just a note that you do not need the switch variable to be a GlobalVariable like in the example. Just have your object reference (or a variable) be the switch indicator.

If you are not familiar with Case blocks, you do need a break; statement to end each block except the “default” one (it’s at the end anyways).

switch (refItem) {
    case 'One':
        println('One');
        break;
    case 'Two':
        println('Two');
        break;
    case 'Three':
        println('Three');
        break;

    default:
        println('Oh no!');
        break;
}