I have a Dictionary (String, Boolean) with a bunch of items added to it as either True/False. I want to check if all the items = False then my automation should throw an exception. These bools are flags for checkboxes the robot selects and if all are unselected, the submit button is greyed out and cannot continue, so I’d rather throw an exception earlier on as soon as we know if everything is set to false then throw exception.
I am looking for the cleanest way to do this. I realise I could possibly loop through the dictionary using For Each and then if item=True flag this and break from loop.
Is there a simpler way to check this?
… Basically want something simple like If myDictionary.Keys.Contains(True) THEN continue ELSE throw exception
Am interested to learn more about the significance of the “x” in Function and how this method is designed exactly, where can I find documentation on this?