SPL Engine commands - Reset engine


1. "Reset" command
  1. "reset" command resets SPL engine that all variables and instances are cleared.

  2. Execute below script to define variable

      
    clear
    
    s = 0
    
    for (i = 1; i <= 10; i++)
    {
    	s = s + i
    }
    
    print "s = " + s
    
      
 

  1. Executed result is as follows.



  2. Before use "reset" command, you should stop all running loops and procedures by using "stop" command.

      
    stop
    
      


  3. Type "reset" command to reset SPL engine.

      
    reset
    
      


  4. Executed result is as follows.



  5. Referencing variable after reset causes error message because all variables were cleared.

      
    print "s = " + s
    
      


  6. Executed result is as follows.