v:\> type qb.btm
do forever
set ans=2
querybox /D /E /T10 "Timeout in 10" 1=ONE; 2=TWO %%ans
if %_? == 2 iterate
delay 1
IFF %ans == 1 .OR. %ans == 2 THEN
echo First IFF: ans = %ans
ENDIFF
IFF %ans == 2 THEN
echo Second IFF: ans = %ans
ENDIFF
if %ans == 3 quit
enddo
v:\> qb.btm
First IFF: ans = 1
First IFF: ans = 2
Second IFF: ans = 2
First IFF: ans = 1
First IFF: ans = 2
Second IFF: ans = 2
v:\> type qb.btm
do forever
set ans=2
querybox /D /E /T10 "Timeout in 10" 1=ONE; 2=TWO %%ans
if %_? == 2 iterate
delay 1
IFF %ans GE 1 THEN
echo First IFF: ans = %ans
ENDIFF
IFF %ans == 2 THEN
echo Second IFF: ans = %ans
ENDIFF
if %ans == 3 quit
enddo
v:\> qb.btm
First IFF: ans = 1
First IFF: ans = 2
Second IFF: ans = 2
First IFF: ans = 1
First IFF: ans = 2
Second IFF: ans = 2
First IFF: ans = 3