Custom validation rule in model

could you give a example to me?

I try to check in validation this:

if ($this->request->getData(‘a’)== 1 and $this->request->getData(‘b’)== 1){
return false
}

would be nice :wink: