---
title: Avoid Use Of The “==” Operator
description: "Impact Area Manageability Severity Medium Affected Element Lightning ## Rule ID **SF-0070** ## Impact Using `==` in conditions may lead to unexpected results, as the variables are automatically casted to be of the same type. ## Remediation Use the `===` operator to evaluate conditions.…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/pmd-rules/avoid-use-of-the-operator/"
updated: "2025-03-21"
category: PMD Rules
---

# Avoid Use Of The “==” Operator

Impact Area

Manageability

           Severity

Medium

           Affected Element

Lightning

## Rule ID

**SF-0070**

## Impact

Using `==` in conditions may lead to unexpected results, as the variables are automatically casted to be of the same type.

## Remediation

Use the `===` operator to evaluate conditions.

### Time to fix

30 min

## References

See the PMD documentation article: [EqualComparison](https://pmd.github.io/latest/pmd_rules_ecmascript_errorprone.html#equalcomparison).
