例如:
For n = 1 to 20 do
Begin
If IsTradeContextBusy = 0 then
Break;
Sleep(15);
End
If n >= 20 AND PrintLog then
Print('交易忙,请稍等');