Cyb

Posts: 2726
Registered: 07-02 |
well it's all a matter of opinion I guess, using less vars is generally better than using them (less memory) plus if you clear the line then the switch can't be hit again. with the if(!scr01) method you can still hit the switch after you've used it the first time it's just that nothing happens. Actually, that's not true since it still runs the script and does comparison to check if scr01 is 0 (taking a couple extra cpu cycles, albeit not noticable to most if not all computers), so yeah, the clear line way is more elegant :) though it takes a bit more effort
|