<<set $a = 1>> //not "1"// <<set $b = 2>> //not "2"// <<set $c = //What code should I write here?//>> <<if $c == 3>> No no no... <<elseif $c == "12">> No no no... <<elseif $c == 12>> Yeah! <</if>>
Or need pure JavaScript?
Compare two variables.
I need to combine two different variables $a = 1 $b = 2 I need $a + $b not 3 but 12
Maybe try something like this:
<<set $a to 1>> <<set $b to 2>> <<set $c to "" + $a + $b>> <<set $c to parseInt($c, 10)>> <<if $c is 12>>true<</if>>