condition for script call