You can use the built-in logical functions to test for specific conditions in a calculation.
Logical functions generally either return an answer of TRUE or FALSE or are based on a condition that evaluates to TRUE or FALSE. The value FALSE equates to zero and TRUE as 1 (or anything non-zero).
Here is a list of logical functions in Ability:
See also: