58.0k views
1 vote
What would make this comparison statement False? Complete with the appropriate relational operator. "G" _____= "G"

1 Answer

4 votes

Equality and Relational Operators

For the statement to return false, you can simply use the "not equal to" equality operation. The full symbol of this operation is '!=', disregarding the quotes.

Examples:

  • [1 != 1] would produce FALSE. Translation: 1 does not equal 1?
  • [1 == 1] would produce TRUE. Translation: 1 does 1?
  • ["G" != "G] would produce FALSE. Translation: "G" does not equal "G"?

CONCLUSION: Use "!=".

User Ignat Insarov
by
5.2k points