how can i make a condition for an if statement to be passed and evaluated at run time

carmelfranco
Kilo Contributor

i have an if condition, i need to evaluate this condition based on the condition selected by the user

 

if user chooses the condition  

A="Add" AND B="User Account" AND C="Remote", this condition needs to be passed to the if condition in the workflow and gets evaluated as  

if(current.variables.A=="Add" &&  current.variables.B=="User Account" && current.variables.C=="Remote")

 

if user chooses,  

(A="Add" OR A=="Modify") AND (B="User Account" OR B="windows account" ) AND (C="Remote" OR C="Local") , this condition needs to be passed to the if condition in the workflow and gets evaluated as  

if((current.variables.A=="Add" || current.variables.A=="Modify") && (current.variables.B=="User Account" || current.variables.B=="windows account")&& (current.variables.C=="Remote" || current.variables.C=="Local"))

5 REPLIES 5

actually the workflow is same but this workflow is been used in multiple places / catalog item. but user updates the criteria in different condition builder form. based on the condition it has to evaluate the expression in the if condition. for this scenario, we can't use record producer