Simple SPL programming using Variables


1. Clear Console
  1. Use "clear" command to clear Console Window.

  2. Select "Application" tab.

  3. Type below command on the editor.

      
    clear
    
      
 

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

  2. Executed result:




2. Add two number by using variables
  1. Type below script on the editor.

      
    a = 300
    b = 500
    c = a + b
    
    print "c = " + c
    
      


  2. Click "Send to MF Application" button or press "F5" key.

  3. Executed result:




3. Expression using variable and Math functions
  1. Type below script on the editor.

      
    m1 = Math.Max(a, b)
    m2 = Math.Min(a, b)
    
    myVal =(a * c) + (m1 / m2) + Math.Pow(c, 2)
    
    print "myVal = " + myVal
    
      


  2. Click "Send to MF Application" button or press "F5" key

  3. Executed result: