The ANY function in SPSS returns a value of 1 if a test condition is true, and 0 if it is false. It can be used to check if a variable has one of several values, or to scan multiple variables for a particular value. The document demonstrates using the ANY function in the select cases procedure to create a new dataset containing only cases where the hometype variable has a value of 1, 3, or 4.