One simple improvement would be to change your if-if-if... to if-elsif-elsif... so you stop testing after the first truth.
In reply to Re: A more efficient way to do this?
by hbm
in thread A more efficient way to do this?
by mirage4d
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |