![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinTjsKWuZ1C37B_1lMGmXvnWDvjO7G9me62WFfBm8MZp0NAvHMkhkVb9vRkmf-z8hzqNiW-mjZFssBhQfJR3EuoYeEjE5xZm8wmBlWgiNXH6960hLtzc8KttAKurZm3zyp93mPBrfgYIX7JnAaQXpQxDloFwqEZNOplnQQE3_UDD6vwoHcpgk1tdVf/s200/rpg.png)
In my RPG work I have been using the IF-ELSEIF operations code instead of Select groups for longer than I have been writing this web site. I preferred them as I could do the same as a Select operation code in less lines of code.
But then comes along two new RPG operation codes in the latest Technology Refreshes, IBM i 7.5 TR2 and 7.4 TR8, that are related to the Select operation code that might change my mind.
The two new RPG operation codes are:
- WHEN-IS: Used to compare the given value is equal to a value or variable
- WHEN-IN: Used to compare the given value is in a list or values, array, or in a range