Timeline for Nested if statements with 3 different parameters
Current License: CC BY-SA 2.5
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 4, 2011 at 8:09 | comment | added | YourRedHerring | Yea the double if I know I could have combined. I had it separated when I was still trying to work it out originally and never combined the two. Probably should have before asking this. | |
| Feb 4, 2011 at 6:39 | comment | added | Jonathan Leffler |
And the double 'if' can surely be abbreviated to if (runPart1.Checked && cmdPart1 != "done")?
|
|
| Feb 3, 2011 at 22:28 | comment | added | YourRedHerring | Wow, how did I not see that? I think what I meant was for it to check the current value so if it was ever set to false it stayed false. I see now exactly what you mean though. Thanks for pointing it out | |
| Feb 3, 2011 at 22:21 | history | answered | Anthony Pegram | CC BY-SA 2.5 |