If my understanding of the AGI Specs is correct (and it better be, since I'm coding something that generates compiled code), then it should be perfectly legal to say:
if (v100 == 2 && v101 == 3 && v102 == 4)
In fact, I just tested that very if-statement in AGI Studio (v.1.35) and it compiled without complaints. I assume that's what you mean when you say you get errors -- compile errors? If that's the case, then the error must be a different problem.