created conditionals script