Hi there,
I have a problem here...
After a button is pressed I want a loop to run until a condition is reached:
- (IBAction)buttonclick1 ...
if ((value2ForIf - valueForIf) >= 3) { ...
I would like a loop to run until
((value2ForIf - valueForIf) >= 3)
and then execute the code associated with the IF statement.
What I am aiming to achieve is the program to keep checking if the above statement is true, before continuing with the code. On top of this there is an else statement beneath the IF, though I don't know if this will affect a loop.
I am unsure of the format of the loop required here and everything I have tried has caused errors. Any help would be greatly appreciated.
Stu