Skip to content

IF

Assigns a value only to cases that meet a condition.

IF (condition) target = expression.
Kind Transformation (pending until data is needed)
Body free-form body
Changes data yes, undoable
IF (age >= 65) senior = 1.
IF (MISSING(income)) income_flag = 1.
  • When the condition is false or missing the target keeps its current value.

DO IF, COMPUTE


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.