how to write condition for selecting 5 options in groovy script?

I have 5 options but based on the work order i want to select the options. Can anyone plz send me the groovy script.

can you be a bit clearer?