This line sounds strange:
if (RedCircle2.hidden = YES, BlueCircle.hidden = YES, YellowCircle.hidden = YES)
You are assigning YES to hidden property of RedCircle2, BlueCircle and YellowCircle and this will always be TRUE as a boolean expression….
You probably wants to do this:
if (RedCircle2.hidden && BlueCircle.hidden && YellowCircle.hidden)
3
solved When making an if statement can I make it so a void that is already running be overwritten? [closed]