aviaf 0 Posted June 15, 2011 I was thinking of using goto,but sinc ethat doesn't exist, is there any way to skip a large chunk of code if a condition is satisfied without using an IF Then Else EndIf? Just because the chunk I'm skipping is pretty big and I'll have to indent everything one tab further in between, right? Share this post Link to post Share on other sites
zac23 0 Posted June 15, 2011 Just because the chunk I'm skipping is pretty big and I'll have to indent everything one tab further in between, right?Nope, the indenting is only for looks and readability Share this post Link to post Share on other sites
smartee 14 Posted June 15, 2011 Also "you" don't have to indent your own code, press Ctrl+T in SciTE and watch the magic unfold Share this post Link to post Share on other sites
monoscout999 10 Posted June 15, 2011 My opinion... use If $bla = true Then _DefaultFunction() Else _AlternativeFunction() EndIf Func _DefaultFunction() msgbox(0,"Whaaja", "Everything is gona be all right") EndFunc Func _AlternativeFunction() msgbox(0,"oops","Alternative way") EndFunc Share this post Link to post Share on other sites
aviaf 0 Posted June 15, 2011 (edited) Thanks monoscout999, that's what I ended up doing, works perfectly. Cleaner too. Edited June 15, 2011 by aviaf Share this post Link to post Share on other sites