Cant u set a out parameter flag for all the 3 conditions

globalcount1,gc2 and gc3

and access that flag outside of the program.

Am i right here ?

Srini