I have a filename as a string containing among other things "1 (Old" or "2 (Old". The length and structure of the string may change so I can't use split or substring.
In my fx I have:
If( contains( outputs('Compose'), '1 (Old', '1',
If( contains( outputs('Compose'), '2 (Old', '2',
''))
It's part of a much bigger line of code finding various bits of the string using contains, every other bit is working fine but this part is failing, I assume because there is an open bracket in the string.
Any advice? Thanks