+1 vote
by (360 points)
<<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?

1 Answer

+1 vote
by (63.1k points)
selected by
 
Best answer
This isn't enough to go on. What are you trying to do?
by (360 points)
edited by

Compare two variables.

I need to combine two different variables

$a = 1
$b = 2

I need $a + $b not 3 but 12

 

by (63.1k points)

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>>

 

by (360 points)
It works! Many thanks!
...