Need help with workflow script if condition

ven1
Kilo Contributor

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

snowtech1
Tera Expert

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