Only execute the first action satisfying matching condition.
Edit math.visjs file to adapt the new rule that environment creating is
moved from exec action to next action.