cancel
Showing results for 
Search instead for 
Did you mean: 

How to add an and/or conditional in a recipe

k_ai
Deputy Chef I
Deputy Chef I

Team

I am trying to add an and/or condition for a recipe line item that is part of an auto flow I am using to populate a field in another system. The formula for the line in template input is 

Cost CenterID fx Line: cost center or profit center Step 1 .include?("CC") Line cost center or project Step1:Skip

How do I update this formula so that is also allows "PC" entries? 

I have tried : Cost CenterID fx (Line: cost center or profit center Step 1 .include?("CC") or .include?("PC")? Line cost center or project : Step 1:Skip
and am getting an error.

I have attached the screenshot of this from workato. Thanks Conditional.png

1 REPLY 1

k_ai
Deputy Chef I
Deputy Chef I

Team, I fixed this. Just needed to put () around the updated code and us || instead of "or". Tested it, now working and ready for Production! thanks all