
- Rexx Tutorial
- Rexx - Home
- Rexx - Overview
- Rexx - Environment
- Rexx - Installation
- Rexx - Installation of Plugin-Ins
- Rexx - Basic Syntax
- Rexx - Datatypes
- Rexx - Variables
- Rexx - Operators
- Rexx - Arrays
- Rexx - Loops
- Rexx - Decision Making
- Rexx - Numbers
- Rexx - Strings
- Rexx - Functions
- Rexx - Stacks
- Rexx - File I/O
- Rexx - Functions For Files
- Rexx - Subroutines
- Rexx - Built-In Functions
- Rexx - System Commands
- Rexx - XML
- Rexx - Regina
- Rexx - Parsing
- Rexx - Signals
- Rexx - Debugging
- Rexx - Error Handling
- Rexx - Object Oriented
- Rexx - Portability
- Rexx - Extended Functions
- Rexx - Instructions
- Rexx - Implementations
- Rexx - Netrexx
- Rexx - Brexx
- Rexx - Databases
- Handheld & Embedded
- Rexx - Performance
- Rexx - Best Programming Practices
- Rexx - Graphical User Interface
- Rexx - Reginald
- Rexx - Web Programming
- Rexx Useful Resources
- Rexx - Quick Guide
- Rexx - Useful Resources
- Rexx - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Rexx - Relational Operators
Relational Operators allow of the comparison of objects. Following are the relational operators available in Rexx. In Rexx the true value is denoted by 1 and the false value is denoted by 0.
Operator | Description | Example |
---|---|---|
== | Tests the equality between two objects | 2 = 2 will give 1 |
< | Checks to see if the left object is less than the right operand. | 2 < 3 will give 1 |
=< | Checks to see if the left object is less than or equal to the right operand. | 2 =< 3 will give 1 |
> | Checks to see if the left object is greater than the right operand. | 3 > 2 will give 1 |
>= | Checks to see if the left object is greater than or equal to the right operand. | 3 > 2 will give 1 |
Example
The following program shows how the various operators can be used.
/* Main program*/ X = 3 Y = 2 say X > Y say X < Y say X >= Y say X <= Y say X == Y
The output of the above program will be −
1 0 1 0 0
rexx_operators.htm
Advertisements