HAI will be releasing version 3.0 of PC Access in about a month or so. This will allow you to set mulitiple conditions so probably don't need to use "flags" as much.
In my case, I used flags as I run out of conditions from the HAI programming interface (i.e. you can't do, IF..ELSE IF..ELSE IF..ELSE).
What are you trying to program, there's a HAI programming guide somewhere from HAI web site. I may have posted the link in the past here as well.