I am writing a sketch to create a automated process, and to ensure that each part of the process is correctly completed, I have 4 errorflags whose status change from =0 to =1 when completed.
At the end of each process cycle, I want to read all 4 values, and if one or more of the flags are still =0, then the process is stopped.
I am OK with most of the code, but what is the correct way to write the statement below, my effort seems long winded!!;
PaulS:
Why do you need 4 flags? A counter, incremented each time something successfully completes, will either be 4 or it won't.
Good idea Paul, that would significantly cut down the coding.
I don't need to know which section 'failed', just that the overall process failed, so yes, thank you.