Hello Community!
First Porst.
Im strugling with macros right now.
Im Building a Field validator based on Formulas and RegEx.
Every field has its own set of conditions for the fields to be valid and return 1 if valid and 0 if invalid.
This already work by itself but I need to validate 2 times during my workflow so I´m trying to make it a Macro.
The main problem is that I want to do it so the macro use one Formula tool for validating "Source1" and another Formula for Validating "Source2"
SORCE1 Columns

SOURCE2 Columns

So since the sources are diferrent and the validations are different, right now I have something like this.

I would like to make it so that, when Source1 is disconected it validates Source2 only.
And if Source2 is disconected it validates Source1 throught formula1.
I tried using a detour tool and actions, conditions and other tools.
I tried making (Optional) my 2 inputs but formulas will throw an error cause fields inside won't be recognized.
What would be the optimal solution fot this? Any ideas?