how to use if else in alert activity | Community
Skip to main content
Level 4
September 20, 2024
Solved

how to use if else in alert activity

  • September 20, 2024
  • 1 reply
  • 542 views

hi all,

I am reading the value of variable 

vars.value1 in alert activity

 

this vars.value1 is coming from Javascript activity placed before alert activity

 

like javascripti actiovty==>Alert activity

 

this value <%=vars.value1%> has some values whuch its displaying in alert activity as output when 

we receieve alert email..

 

my ask is if value of vars.value1  is coming as 0 

from javascript activity

 

then I would  like to do if else statement 

if vars.value1=0

 

then print no records found

 

need help here how can i add if else in alert activity

please help

need help with syntax

 

if vars.value1 is greater than 0 than print

<%=vars.value1%>

(this case i am able to achieve)

@_manoj_kumar_ 
@parthasarathy 

@akshayanand 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by god_prophet

You should this if else testing in the JS activity and save it to 

vars.value1... so what ever is the result of that test will be rendered in the alert.

1 reply

god_prophetAccepted solution
Level 6
September 20, 2024

You should this if else testing in the JS activity and save it to 

vars.value1... so what ever is the result of that test will be rendered in the alert.