How can I create an IF/THEN conection?