What are comparison operators they are basically used to compare two items and they always return a Boolean(True or False)
1.== : equal to
2.!=: not equal to
3.>:greater than
4.>=: greater than or equal to
5.<>:not equal to
6.<=:less than or equal to
7.<:less than
8:eql>():To compare types
This operators can be used to compare any data type in ruby .Feel free to play around with .Hope to see you in the next section where we dive deep or deeper into conditional operators.
Top comments (0)