In those cases, a simple course of action is to assign a unique/ordinary key (depending on the context) to the list elements (values), store the key of the active (or desired) item in a relevant variable and compare it to the next activated key everytime WhenAction is called.