Reputation: 1
need your input on this. i'm creating a logic for an email using velocityscript
#set($test = "{{lead.test_change}}") (value is only "Up" or "Down")
$test
what happen is it will render "Down"
but if i put
#set($test = "{{lead.test_change}}")
#if($test == "Down")
it works
#else
not working
#end
it renders "not working"
it seems like it didn't catch the conditional if. whereas it should match "Down"
Upvotes: 0
Views: 64
Reputation: 127
These sorts of things can be hard to diagnose without more context, so I'd recommend the following:
Upvotes: 0