If true perform a function

How many treats can the cat have?