# 'is equal to': == vs ===

**URL:** <https://discourse.processing.org/t/is-equal-to-vs/13150>\
**Category:** Beginners\
**Created:** [August 3, 2019, 11:26am UTC](https://discourse.processing.org/t/is-equal-to-vs/13150 "2019-08-03T11:26:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SheCurvesMobius](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shecurvesmobius/32/7054_2.png) [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Post date:** [August 3, 2019, 11:26am UTC](https://discourse.processing.org/t/is-equal-to-vs/13150/1 "2019-08-03T11:26:11Z")

</div>

Hi all,

I come from Processing where ‘is equal to’ is represented by ‘==’. Lauren McCarthy’s book “Getting Started with Processing” uses this standard as well. However I’ve noted that here:  
[https://p5js.org/examples/control-conditionals-1.html](https://p5js.org/examples/control-conditionals-1.html)  
they show ‘===’ for ‘is equal to’. Is this an updated standard? Is there a difference between the two?

Thanks!

---

<div class="post-metadata">

**Author:** ![Tiemen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tiemen/32/5477_2.png) [@Tiemen](https://discourse.processing.org/u/Tiemen)\
**Post date:** [August 3, 2019, 11:32am UTC](https://discourse.processing.org/t/is-equal-to-vs/13150/2 "2019-08-03T11:32:57Z")

</div>

It’s not an updated standard, but rather a more specified type of check.

== checks whether values are the same, while === also checks whether the variable **types** are the same. The first example on the article [JavaScript – Equality (==) vs. Identity (===) Operators](https://howtodoinjava.com/javascript/javascript-equality-vs-identity-operators/) should give you a pretty good idea of how it works.

---

<div class="post-metadata">

**Author:** ![SheCurvesMobius](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shecurvesmobius/32/7054_2.png) [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Post date:** [August 3, 2019, 11:34am UTC](https://discourse.processing.org/t/is-equal-to-vs/13150/3 "2019-08-03T11:34:34Z")

</div>

Amazing-- thanks so much for your response 🙂 Extremely helpful!
