Sounds like the OP wants to do something like this:

Code:
cpu_speed = ........     ' compute actual CPU speed
if cpu_speed = 5 then
  ' do something
else
  ' do somethingelse
end if