Jongskie M.
Technical User
Hi am neophyte here, can you check the script below on how to declare loops in the conditional statement which start from the highlighted below.
Code:
Call ZocCls
login = ZocAsk(" What is your name:? ")
IF login = "##CANCEL##" THEN DO
[COLOR=#CC0000]answer = ZocRequest(" Command Cancelled , Retry?", "Yes", "No")[/color]
DO UNTIL answer = "No"
END
SAY
CALL ZocMsgBox "Good Bye, Have a Nice Day!"
SIGNAL endit
END
IF login = " " THEN DO
ZocMsgBox(" Null Input, Please Try Again ")
END
ELSE DO
/* Request to Proceed */
ZocMsgBox(" Your Request will execute now ")
CALL ZocDelay 1
ZocSend "Welcome back Mr/Ms '"||login||"' Have a great Day!^M"
END
endit: /* target for the SIGNAL command above */
EXIT