Name: Achmad Fahry Baihaki
NIM: 2206065110100
Institute: Maulana Malik Ibrahim Islamic State University of Malang
Departement: Computer Science
Lecturer: Prof. Dr. Suhartono, M.Kom


Relation operators is operators that are used to determine the relationship between two or more operands.

Symbol Description
“>” Greater than
“<” Less than
“>=” Greater than or Equal
“<=” Less than or Equal
“==” Equal
“!=” Not Equal

Let’s see the examples below:

a = 9.5
x = 10
1. Greater than (>)
x > a
## [1] TRUE
2. Less than (<)
a < x
## [1] TRUE
3. Greater than or Equal (>=)
a >= x
## [1] FALSE
4. Less than or Equal (<=)
x <= a
## [1] FALSE
5. Equal (==)
x == a
## [1] FALSE
6. Not Equal (!=)
a != x
## [1] TRUE

Relation operators only produce 2 values. TRUE and FALSE or 0 and 1.