A better way to do this is an event structure. It eliminates polling entirely and you can create events for any kind of FP changes you desire. Instead of polling every 5ms if anything changes, the code waits until an event occurs.
The basic design is an event structure inside a while loop. Any monitored event (e.g. value change of a control) will trigger execution of the assigned event case. Have a look at the shipping examples. Search for "events". Have a look at e.g. the example named "event tracking.vi" or "New event handler.vi".
Back to your original question:
Without event structures, you need to compare each value with the previous value from a shift register at each iteration to see if they have changed. use the boolean output of the comparison to switch to a designated execution case. If nothing changed, play an empty case. The case structure of course must be in the same loop where the polling takes place, NOT outside the loop as you seem to be trying to do.
There are many more complex ways to do this, e.g. with seperate loops for UI and computations, linked by e.g. queues. At this stage, I would keep it simple.