No colon after "warn", "else" can be removed.
With the regular Commodore supplied cpu command, you must check for a higher cpu and then negate the test. Dunno about setcpu.
Something like:
C:Cpu >nil: check 68030
If NOT WARN
echo "We're running a '030"
EndIf