NF3.rawValue = 0
    NF3.rawValue = NF1.rawValue – NF2.rawValue
    NF3 = 0
    NF3 = NF1 – NF2
Both scripts use the numerical fields NF1, NF2, and NF3. The user can type numbers into the NF1 and NF2 fields, and the script subtracts the numbers (NF1-NF2) and displays the difference in the NF3 field. If the result is negative, the NF3 value is set to 0.

To run the Scripting sample