Need help with workflow script if condition
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 07:57 AM
I need to define the workflow for 'if' condition when user selected "Yes" or "No"
Example : If user needs PC and he/she selects "YES" workflow goes to next level and selected "NO" workflow has to completed.
Can any one help me for the workflow and script.
Thank you.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 08:11 AM
Hello Venkat,
I'm not sure you need to define any block.
You could use the OOB 'if' block in wf editor and I understand it's a catalog item, so in the script block something like,
if(current.variables.variable_name=='yes')
return 'yes';
else
return 'no';
Then branch out the yes/no on the 'if' block