CREATE LOGICAL command
CREATE LOGICAL (non-schema command)
See Crunch Automation basics for more information.
The CREATE LOGICAL command allows you to create a logical variable from an expression that evaluates to boolean. This variable can be later used for filtering or conditions.
CREATE LOGICAL expression AS alias [TITLE "string"] [DESCRIPTION "string"] [NOTES "string"];
CREATE LOGICAL gender == "F" or gender == "f" AS females TITLE "Female panelists" DESCRIPTION "Only female panelists";