About Lesson
Flowgorithm Relational Operators
Flowgorithm Relational operators compare variables or expressions and evaluate them as True or False.
The Flowgorithm Relational operators are as follows:
Relational Operator | Operator Symbol | Description |
Greater Than | > | a > b Compares and returns True if variable a is greater than the variable b. It returns False if the variable a is less or equal to b. |
Less Than | < | a < b Compares and returns True if variable a is less than variable b. It returns False if the variable a is greater or equal to b. |
Greater Than or Equal To | >=,≥ | a >= b Compares and returns True if the variable a is greater than or equal to the variable b. It returns False if the variable a is less than b. |
Less Than or Equal To | <=, ≤ | a <= b Compares and returns True if variable a is less than or equal to variable b. It returns False if the variable a is greater than b. |
Equal To | ==, = | a == b compares and returns True if variable a is equal to variable b. It returns False if the variable a is not equal to b. |
Not Equal To | !=, <>, ≠| a != b compares and returns True if variable a is not equal to variable b. It returns False if the variable a is equal to b. |
Â
You can build conditional expressions using these operators to control the flow of the flowchart, loop statements, etc. You can use these operators to build expressions in If, Loop symbols. ( For, While, Do)
We will learn about these symbols in the upcoming lessons.
Â