stevie70 Posted October 30, 2011 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... :-)=)
davidlallen Posted October 30, 2011 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) ...
stevie70 Posted October 30, 2011 Author Posted October 30, 2011 On 10/30/2011 at 6:30 PM, davidlallen said: 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" ;-))
Gribbleshnibit8 Posted October 30, 2011 Posted October 30, 2011 On 10/30/2011 at 9:55 PM, stevie70 said: (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!
Recommended Posts