在我的应用程序中,我有几个计时器,timer1 太 timer5。timer1 激活 timer2 等等,将前一个计时器设置为 false。
所以我想制作另一个跟随这些的计时器,比如“timer6”
if timer1.enabled = true then 'then it should check if the timer2 now is enabled
if timer2.enabled = true then 'and so on to it reaches timer5..
需要任何示例来实现这一点,因为我在一个停止点,基本上只需要这部分工作。
我的想法只是在 timer6 中执行此操作
if timer1.enabled = true then
if timer2.enabled = true then
if etc etc
else
timer6.enabled = true
timer6.enabled = false
end if
end if
end if
结束子
任何想法如何做到这一点?
所以..我正在寻找一种方法来检查所有计时器是否在一个条件下启用并禁用最后一个。