What is the best way to write several decisions into a string?

Hi there,

Part of a bot I’ve built checks multiple strings to see if they are matching and outputs them as a Boolean true or false between data on our system vs that scraped from another system.

What I would like to do now is essentially find a way to conjoin all these together if they do not match. So for example:

Check StreetName, if StreetName’s match = false, add the other system’s information to a string (to enter into our own for audit purposes). Move on to PostCode, if matching is false then add that to string also, etc etc.

What would be the easiest way to do this? Thanks for your help!

Actually, found a solution: instead of a bool, compare the strings and if different then write the desired string, otherwise write null. Then I can just write out all the variables and it doesn’t matter.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.