How to compare two variable values in if condition ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 05:17 AM
Hi All,
I need to compare two variable value in if condition on workflow.
I have reference variable ( Name_Requested_for ) and string variable ( assigned to) if both variable values not same it need to trigger TASK.
Please suggest.
Thanks all.
Varma
Labels:
- Labels:
-
Service Catalog
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 05:20 AM
Hello,
try this
answer =ifScript();
function ifScript()
{
if(current.variables.Name_Requested_for.getDisplayValue()==current.variables.assigned_to)
{
return 'yes';
}
else
{
return 'no';
}
}
PLEASE MARK MY NASWER CORRECT IF THIS HELPS YOU