Timeline for Moving a continue condition into the for loop produced something NOT logically equivalent?
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 26, 2016 at 9:49 | comment | added | lozzajp | @DrZ214 I don't think it is possible, also I would probably opt for the continue statement for readability. You are saying I don't want to run the rest of this statement but I do want to continue with the for loop. If it is in the for loop conditional it is saying the condition is not met so stop the for loop all together. | |
| Aug 26, 2016 at 9:47 | comment | added | DrZ214 | Right, continue will skip over things, whereas the for condition(s) will break everything. This is why I negated it in the migration and expected something logically equivalent. I must be missing something. Is there any way for me to move my condition into the for loop with the right transformation? I will experiment with ands and ors with grouping, because i have 3 expressions in the for conditions right now. | |
| Aug 26, 2016 at 8:27 | history | answered | bornander | CC BY-SA 3.0 |