I read up, but failed to find an official explanation for this. Feel free to point me to the appropriate documentation.
I use the EMAIL instruction with a String variable in the "To" field that is a concatenation of up to three email addresses, set in the HMI. Recently, I discovered that if none of the email addresses are entered, the EMAIL instruction will not give me an Error, but it won't give me a Success either.
This is a problem, since I set up the program to branch off in one of two cases, Success or Error. Neither happened, and an important operation was skipped over.
Personally, I would be happy to see an error here. Maybe "Could not send email: no valid email address in 'To' field", or something like that. As it stands, I'll have to make a secondary timeout and consider it an error. But I had hoped that "On Error" would have covered that.
I'm happy to hear other thoughts on this. Thanks for listening.