Make procedure or loop stop


1. Implement endless while loop
  1. Select "Application" tab.

  2. Type below script on the editor.

      
    clear
    
    while(true)
    {
      d1 = Util.Now()
      print "Current Date & Time is " + d1
    
      wait 1000    //wait 1 sec
    }
    
      
 

  1. Click "Send to MF Application" button or Press "F5" key.

  2. Executed result:




2. Make stop procedure or loop
  1. In order to make running procedure or loop stop, use "stop" command.

  2. Type below script on the editor.

      
    stop
    
      


  3. Click "Send to MF Application" button or Press "F5" key.

  4. Executed result:



  5. "stop" command set flag internally to make all running procedures and loops stop.