>if a = 'a' or a = 'b' or a = 'c'
>
>- OR -
>
>if inlist(a,'a','b','c')
>
>Which is quicker and/or better programming? Just in case, I'm maintaining in 2.6.
>
Sunshine,
I'd guess they're probably about the same. Unless you're doing a large number of iterations (1,000,000+) the difference probably isn't worth worrying about. However, simply because I think that the latter would be easier to maintain, I'd go with it.
George
Ubi caritas et amor, deus ibi est