IF
Assigns a value only to cases that meet a condition.
Syntax
Section titled “Syntax”IF (condition) target = expression.Synopsis
Section titled “Synopsis”| Kind | Transformation (pending until data is needed) |
| Body | free-form body |
| Changes data | yes, undoable |
Examples
Section titled “Examples”IF (age >= 65) senior = 1.IF (MISSING(income)) income_flag = 1.- When the condition is false or missing the target keeps its current value.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.