Hi,

I use:
if @RAS > 1
exit <Exit code>
endif

The advantage the script returns the apropiate errorcode.