How to run an IF/ELSE function on many data variables with one Data Event?

  • 9 January 2020
  • 1 reply
  • 6 views

In my workflow in K2 Studio, I'm trying to perform an IF... THEN... function on 30 data fields. Is there a smarter way I can do this than by creating 30 IF... THEN... entries?

 

Ideally, the logic would look like this

IF (DataField == 'true') THEN {DataField = '<b>' + DataField + '</b>'}

I'm using K2 Designer and K2 Studio.

 

Thank you!

 


1 reply

Badge +8

Hi mitch,


 


What happens if you use a Code Reference Event in your K2 Studio project?


 

Reply