@VAMSOY I would recommend you check out either LogicBricks (MacGruber, visual programming), or Scripter (mine, scripting). To make conditions like this, both will allow you to do what you need, more learning curve but much simpler setup once you understand how to use it :)