You can test for more than one condition using the if...else if conditional statement. For example, the following code not only tests whether the value of x exceeds 20, but also tests whether the value of x is negative.
if (x > 20) {
trace ("x is > 20");
}
else if (x < 0) {
trace ("x is negative");
}