Skip to content
Algo Trade Analytics Docs

== - Pine Script Operator

==

Equality operator. Returns true if the operands are considered equal, and false otherwise. This operator is compatible with all value types, including “int”, “float”, “bool”, “color”, and “string”. The operator can also compare two line or label IDs.

expr1 == expr2

Boolean value, or series of boolean values.

  • This operator rounds “float” operands to nine fractional digits.