While it's absolutely best practice to check your error status immediately after returning from a function call, output statements will not set the error status. This can be verified by the following little script:
 Code:
Status(2)
'this,' ?
'that,' ?
'the other thing...' ?
'Oh, BTW, the function result was "' @SERROR '"' ?

Function Status($Val)
  Exit $Val
EndFunction

The function "STATUS" simply returns the parameter as the exit code.

Glenn

PS - think about it.. if a print statement set the error result, how could you print the error result using the macro?? ;\)
_________________________
Actually I am a Rocket Scientist! \:D