Dear community
I'm building an app in which users can create their own conditions. E.g. a user might select something like the following:

I'm saving these dynamically created conditions in a SharePoint list like this:
{Title}#{Equals}#{Demo}#{Or};{Title}#{Contains}#{Test};
Before a new item is being created, I would need to loop through all dynamically created conditions and fill in the variables. E.g. if my "title" field would be "hello test", the outcome would need to be something like:
"hello test" Equals "Demo" Or "hello test" Contains "Test"
I would then need to validate this condition. In above case, the result would need to be true since "hello test" contains "Test".
Does anyone know if something like this is possible in Power Apps/Power Automate? I couldn't figure out how... since I can't declare a variable to be a condition.
Right now I'm solving this with an azure function calling a PowerShell, but I'd much rather have everything in Power Apps/Power Automate.
Thanks and kind regards,