2.2.8.3. Set Operators | Table of Contents | 2.2.8.5. Typecasts |

2. TMT Pascal Language Description

2.2. Pascal Language Structure

2.2.8. Expressions

2.2.8.4. Relational Operators

Relational operators perform arithmetic, literal, and set comparisons. All relational operations result in a Boolean type. Relational operators include:

Operator | Meaning | Applicable types |
---|---|---|

= | Equal | integers, reals, booleans, chars, enumerations, strings, sets, pointers |

< | Less than | integers, reals, boolean, char, enumerations, strings, pointers |

> | Greater than | integers, reals, boolean, chars, enumerations, strings, pointers |

<= | Less than or equal | integers, reals, booleans, set inclusion, chars, enumerations, strings, pointers |

>= | Greater than or equal | integers, reals, booleans, set inclusion; chars, enumerations, strings, pointers |

<> | Not equal | integers, reals, booleans, chars, enumerations, strings, sets, pointers |

in | Membership | A set type on the right and the set's base type on the left |

2.2.8.3. Set Operators | Table of Contents | 2.2.8.5. Typecasts |