anyone helps me to loop over a query name, "FindUpperLvl".
Once "getInfo" query does not have any record, it will excute
the "FindUpperLvl" query and FindUpperLvl query should loop until
it finds one record.
The range of getInfo.levelid is 144 to 147.
Sorry I should explain more in detail.
The number of record in FindUpperLvl will be determined based
on the getInfo query. The list of value getInfo.levelid can be 144,
145, 146, or 147.
If I found no record, I need to loop over again until it
finds a record.
So for exmple, getInfo.levelid is 146 and there is no record
found in FindUpperLvl, I need to pass 145 (getInfo.levelid ) which
is less than the previous value. 144 is the smallest value and 147
is the biggest value I can pass.