if(assignedto == var1)
{
var2 = value.get("id");
}
else if(assignedto != var1)
{
alert("unable to fetch");
}
alert function is not working in the deluge script inside if condition is there any option for doing the alert function in the deluge
There are some contexts where alert doesn't work. That may or may not be the case in the code above. Try replacing the
alert
with aninfo
statement to see if it will display some information.Example code:
info "unable to fetch: assignedto: " + assignedto;
Also maybe change the
else if
to anelse
to fully capture every case whereassignedto == var1
is false.