I want to know whether there is a better of more efficient solution.
I made a workflow that scans a PDF document with OCR. The output is checked for values with an IndexOf. I check for the ordernumber “Ordernummer”. However, the PDF documents are in multiple languages (dutch, german, english and french). So if not found “Ordernummer” it returns “-1”. In that case, I want to check for the german word “kundenr”. If not found, then check for the next language. And so on… I now have multiple If statements in other If statements.
Is there a better solution for this?