3 Replies Latest reply on Oct 10, 2012 12:44 PM by 813465

    NaN issue

      i am trying to do calculation with this formula

      <?xdoxslt:abs(xdoxslt:get_variable($_XDOCTX,'var1Total') - xdoxslt:get_variable($_XDOCTX,'var2Total'))?>

      we have to show only absolute value for that i have used abs, now my issue is any of the variable have no value then it displays NaN.

      Any idea??

      for me i m getting var1Total is 575.95 where as var2Total is null. I want to display the first var1Total value 575.95 at the same if i dont have value of both total then it has to display 0.00.