Compute Variable: If Cases

The If Cases dialog box allows you to apply data transformations to selected subsets of cases, using conditional expressions. A conditional expression returns a value of true, false, or missing for each case.

Specifying Conditional Transformations

  1. From the menus choose:

    Transform > Compute Variable...

  2. In the data transformation dialog box, click If.
  3. Select Include if case satisfies condition.
  4. Enter the conditional expression.
  1. To build an expression, either paste components into the Expression field or type directly in the Expression field.