Basic if logic, basic define logic