2 Replies Latest reply on Apr 13, 2012 12:20 PM by Vinnie Lima

    NSH Script Sum of Integers

    Vinnie Lima

      Can someone help me on the syntax for adding two integers? Tried the below but not the expected result of "2"

       

      NUM1=1

      NUM2=1

       

      SUM=$NUM1+$NUM2

       

      echo $SUM  results in "1+1" being returned.

       

      Tried other common combinations but no luck....

       

      Thanks,

      Vinnie