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

IF

Assign a value only for the cases where a condition holds.

Syntax

IF (condition) target = expression.
The parentheses around the condition are optional.

Example

IF (age >= 65 AND region = 2) senior_south = 1.

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