Comparison Operators

🔹 Summary

Currently, there are two different comparison operators implemented.

== (Equal to)
!= (Not equal to)

TLDR: Comparison operators are used in if statement logic.


🔍 Syntax

comp1 op comp2,
  • Where comp1 and comp2 should have the same datatype.
  • Where op is either of the two specified operators (== or !=).

Examples:

1 == 1
32 == (16 * 2)
True != False
"Lamentable" == "Lamentable"

Output:

True
True
True
True