I'm not sure I understand what you're trying to achieve.
If you want the error to stop the task then place 'stop task' within the if statements. If you want to log the error then you can use 'error handling' or 'log to a file' within the if containing the error variables. If you want to display the error you can use 'message box' to display the error.
|