| |
Simple SPL programming using Variables
1. Clear Console
- Use "clear" command to clear Console Window.
- Select "Application" tab.
- Type below command on the editor.
|
|
|
- Click "Send to MF Application" button or Press "F5" key.
- Executed result:
2. Add two number by using variables
- Type below script on the editor.
| |
a = 300
b = 500
c = a + b
print "c = " + c
| |
|
- Click "Send to MF Application" button or press "F5" key.
- Executed result:
3. Expression using variable and Math functions
- 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
| |
|
- Click "Send to MF Application" button or press "F5" key
- Executed result:
|