If it is something that returns an error code, like an HTTP request, it is easy, but it is difficult to know what constitutes success.
In the forum, there are occasional posts that are logged in the system log but not executed.
After execution, you can switch variables to confirm that you went that route, but you don't know if it was executed.