Hi, With regular expressions you can simplify it :
For example, if ( test1.match(/^[a-z]8$/) ) { } Pierre Lily Tomlin - "The trouble with the rat race is that even if you win, you're still a rat." 2008/11/19 Alfredo Alessandrini <[EMAIL PROTECTED]> > > Hi, > > > Can I simplify this if statement? > > > if (test1 == 'a8' || test1 == 'b8' || test1 == 'c8' || test1 == 'd8' > .......... > > > I must select some values, the first is a letter and the second is a > number (always the number 8: a8, b8, c8, d8, ecc......) > > > Thaks in advance, > > Alfredo >