## DEV Community is a community of 696,672 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

# Dart - Relational Operators

Vishnu Damwala
A human being currently living in IndiaðŸ‡®ðŸ‡³ on Earth. Founder of MeshWorld, a web geek, an industry experienced web developer & tutor/instructor currently lives in Surat City.
Originally published at meshworld.in ãƒ»1 min read

Dart provides operators that can be used to check the relationship between values or values within variables also known as operands.

All relational operators, less than(`<`), less than or equal to(`<=`), greater than(`>`), greater than and equal to(`>=`) gives resultant value in boolean i.e either `true` or `false` after evaluation.

# Relational operators

• All of these relational operators are binary operators.
Operator Description Example
`<` Less than `x == y`
`<=` Less than or equal to `x != y`
`>` Greater than `x == y`
`>=` Greater than or equal to `x != y`
``````main() {
// create variables
int a = 10, b = 12;

// value of a and b
print('Value of a is \$a and b is \$b');

// > operator
print(a > b); // false

// < operator
print(a < b); // true

// >= operator
print(a >= b); // false

// <= operator
print(a <= b); // true
}
``````

Read the complete post on our site Dart - Relational Operators

Read others post on our site MeshWorld

Hope you like this!

Keep helping and happy ðŸ˜„ coding