I have a program of if else statements that are testing something i would like it to stop the program if a test fails than going on with the next one but as long as they pass keep going.
It's looking for 5 volts and if it see's it led 1 goes on saying it passed led2 saying it failed. if it fails on any test to stop testing the rest of the steps