So here's why I asking.
I run a flow sensor on my main return, I also have a manifold right now its running just a uv sterlizer and I may run a reactor of some sort in the other. The manifolds are set with a valve to control flow, but if i was to open or close the valve more I will lose or gain flow to the tank. Being a herbie style drain this could either send water down the emergency drain w/ no submerged pipe(loud sump area) or lower the flow into the over flow causing the waterfall noise. Then off to playing with the gate valve for a few days to redial in the drain.
This coding is probably more then a if and then statement. It would be more like
Fallback On
Set Flow to (desired flow) off FlowSenX
Then rest of your program
Or
Fallback on
If flow under 449 raise cor % by 1
If flow over 451 lower cor % by 1
Defer 1 min
If feed cycle A then 1%
ETC