stevie70 Posted October 30, 2011 Share Posted October 30, 2011 now that's one error (geck-powerup) i sure hadn't expected (or even thought would exist) -"Max. nesting of 10 exceeded.", meaning i have more than 10 nested ifs and obviously can't do that...hm...well then, let's go see if i can do more than 10 &&'s in one line... :-)=) Link to comment Share on other sites More sharing options...
davidlallen Posted October 30, 2011 Share Posted October 30, 2011 You can also use intermediate variables: short a; a = 0 if (c1 && c2 && c3 && c4) then a = 1 endif if (a && c5 && c6 && c7) ... Link to comment Share on other sites More sharing options...
stevie70 Posted October 30, 2011 Author Share Posted October 30, 2011 You can also use intermediate variables:ah, cool one, thanks :-)(looks a bit like hell to keep track of when opening the script a week later though, but then, i don't necessarily have to call the thing "a" ;-)) Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted October 30, 2011 Share Posted October 30, 2011 (looks a bit like hell to keep track of when opening the script a week later though, but then, i don't necessarily have to call the thing "a" ;-))And of course don't forget to comment your code. Makes it way easier to come back 1 month, 3 months, a year later and see what's going on. Also makes it way easier for others to understand and read your stuff. The more you know! Link to comment Share on other sites More sharing options...
Recommended Posts