comparison operator
nounUK /kəmˈpær.ɪ.sən ˈɒp.ər.eɪ.tər/
US /kəmˈper.ɪ.sən ˈɑː.pə.reɪ.t̬ɚ/
A comparison operator is a symbol that checks if two things are the same, bigger, or smaller.
In the code, the comparison operator '>' checks if one number is greater than another.
RELATED WORDS
OTHER MEANINGS
2. A symbol such as =, <, or > used in math to compare two values.
The math worksheet asked students to choose the correct comparison operator between 7 and 3.
3. In programming, an operator that returns true or false after comparing two values.
The if statement uses a comparison operator to decide which message to show.
4. A tool in spreadsheets that lets you test whether one cell is equal to, greater than, or less than another.
She used a comparison operator in the formula to flag scores above 90.