---
title: "Comment by Mark on \"Why 3 > 2 > 1 gives false\" | Hashnode"
description: "Useful warning to prevent this pitfall! Some languages like Python understand this syntax (so that 1 &lt; 2 &lt; 3 is the same as 1 &lt; 2 and 2 &lt; 3 ). Many"
url: "https://hashnode.com/posts/why-3-greater-2-greater-1-gives-false/5f5cbff1ddc3fe5f4f24d06a/comment/5f5cd57e13599a5f2e33f4e2"
---

[Discussion](https://hashnode.com/posts/why-3-greater-2-greater-1-gives-false/5f5cbff1ddc3fe5f4f24d06a)

Comment [Why 3 > 2 > 1 gives false](https://hashnode.com/posts/why-3-greater-2-greater-1-gives-false/5f5cbff1ddc3fe5f4f24d06a)

[Mark](https://hashnode.com/@mverleg)

[Sep 12, 2020](https://hashnode.com/posts/why-3-greater-2-greater-1-gives-false/5f5cbff1ddc3fe5f4f24d06a/comment/5f5cd57e13599a5f2e33f4e2)

Useful warning to prevent this pitfall!

Some languages like Python understand this syntax (so that `1 < 2 < 3` is the same as `1 < 2 and 2 < 3`). Many others give an error. I think Javascript's behaviour is an unfortunate mistake.
