Hi,
I was wondering if there is a way of having a while loop or for loop that cycles though functions if the return is = to a set result.
for example:
void myFunction(){
// loop code goes here
Test1();
Test2();
........
Test30();
if any of the above return False then stop and goto returnFalse()
}
int Test1(){
}
.........
int Test30(){
}
trying to keep code to minimal as i have a significant amount of variable tests
Each Test is slightly different, hence in separate functions. They will be returning "PASS" or "FAIL" strings. returnFalse() is a function that will stop the loop and display where it failed.
I'm looking for a simplified part of code rather than listing all the functions with if statements after each to check the return string