How to use javascript variable to check condition and use in email delivery template
Hi,
I have used Javascript code to make a functional call using API. I have stored that value in a variable. Now, I'm trying to use the value to check if the value of variable is greater than static value and if yes, I want to go ahead in further step in workflow. If not, I want to end the workflow.
Also, I want to use the variable value in email delivery.
I have tried few things to do this however, I was just able to fetch variable in Javascript code block and after that, there are only errors.
Can anyone help with first part of question - that is, trying to check variable value against static value ?





