Next: Data Input and Output, Previous: Language, Up: Top [Contents][Index]

Expressions share a common syntax each place they appear in PSPP
commands. Expressions are made up of *operands*, which can be
numbers, strings, or variable names, separated by *operators*.
There are five types of operators: grouping, arithmetic, logical,
relational, and functions.

Every operator takes one or more operands as input and yields exactly one result as output. Depending on the operator, operands accept strings or numbers as operands. With few exceptions, operands may be full-fledged expressions in themselves.

• Boolean Values: | Boolean values | |

• Missing Values in Expressions: | Using missing values in expressions | |

• Grouping Operators: | parentheses | |

• Arithmetic Operators: | add sub mul div pow | |

• Logical Operators: | AND NOT OR | |

• Relational Operators: | EQ GE GT LE LT NE | |

• Functions: | More-sophisticated operators | |

• Order of Operations: | Operator precedence |