You can do this with If_v2 command using statusOK to check or onerror command
Here you find some examples