IF Number > 70 AND Number <= 100 THEN
Grade ← "A"
ELSE IF Number > 50 THEN
Grade ← "C"
ELSE IF Number >= 0 THEN
Grade ← "F"
ELSE
Grade ← "Error"
END IF
เป็นต้น
หรือ
SELECT CASE Number
CASE 0 TO 50
Grade ← "F"
CASE 51 TO 70
Grade ← "C"
CASE 71 TO 100
Grade ← "A"
CASE ELSE
Grade ← "Error"
END SELECT