* Aash When doing like this:
var $a=2
var $b=3
var $c=$a+$b

Copy code

its output is coming as: 2 3
And When doing like this:
var $a=2
var $b=3
var $c=($a+$b)

Copy code


its output is coming as: (2 3)
2015-03-07 22:32 (edited 2015-03-07 22:35 by Aash ) · (0)
* Graham * Aash Your second example returns 5 ?
xtscript tries to evaluate anything in brackets as maths
Are you sure something is not urlencoding your + symbols as spaces
2015-03-07 23:59 (edited 2015-03-08 01:34 by Graham ) · (0)
* Aash * Graham I think its url encoding, if so how to get rid of that. It is being used in a form with post menthod. See var a2 in the code below.
2015-03-08 04:49 (edited 2015-03-10 08:16 by Aash ) · (0)
* Graham * Aash What are the inputs? because it works fine for me with straight numbers!
2015-03-08 05:45 · (0)
* Aash * Graham Input are decimal values e.g., 0.02
And one more thing the + is automatically getting converted to space in my code block.
Here is a: TEST PAGE
2015-03-08 08:07 (edited 2015-03-08 08:14 by Aash ) · (0)
* Aash * Aash I think it was a Cache or something. Now it's working fine! THANKS!
2015-03-08 08:30 · (0)

Online: Guests: 1