Set conditions to be checked in a function