Added conditional branching (if/else) action