SPSS Syntax Language Logical Operators - dummies

SPSS Syntax Language Logical Operators

By Arthur Griffith

Part of SPSS For Dummies Cheat Sheet

Syntax offers conditional statements that are executed only if conditions are right. Usually those conditions are determined by evaluating the contents of a variable with a logical or relational operator. The following table lists the logical operators you can use for longer, complex comparisons:

Symbol Alpha Definition
& AND Both relational operators must be true
| OR Either relational operator can be true
~ NOT Reverses the result of a relational operator