Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Statscraft 0.7.0, release v0.7.0

DO IF

Start a block of transformations that run only where a condition holds.

Syntax

DO IF (condition).
Followed by COMPUTE, IF, RECODE or nested DO IF commands, then optional
ELSE IF (condition). and ELSE. branches, then END IF.
For each case the first branch whose condition is true runs. After a missing
condition no later branch runs for that case.

Example

DO IF (age < 18).

statscraft help DO IF prints the same text in the terminal. All commands