return 1 or 0 when evaluating logical operators