implement if instruction