方案循环的 方法。 在做轴向垂直很有用。

 x = 0
 
 
rollout unnamedRollout "Untitled" 162 height:300
(
 button btn1 "Button" pos:[53,74] 90 height:98
 
 on btn1 pressed do
 (
  x+=1
  if x==1 then print 1
   if x==2 then print 2
    if x==3 then print 3
      if x >3 then
      (
       x=1
       print 1
      
      
      )
   
  
  
  
  
 )
 
 
)
createDialog unnamedRollout

原文地址:https://www.cnblogs.com/gaitian00/p/2172318.html