any action that modifies {LastResult} will do so automatically, but if an action fails then it will not update the {LastResult}. Some actions do not modify {LastResult}, in this case they may still show some kind of info in the history window.
{LastResult} will remain between actions and commands until it is changed.
What kind of Insteon controller do you have, and what is the command xml that you are using?