> For the complete documentation index, see [llms.txt](https://koshizuow.gitbook.io/compilerbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://koshizuow.gitbook.io/compilerbook/calculator_level_language/step7.md).

# 第7步：比較運算子

本節會實作 `<`、`<=`、`>`、`>=`、`==`、`!=`這些運算子。雖然看起來這些比較運算子有特別的功能，但其實他們和`+`或`-`一樣，都是取兩個整數然後傳回一個整數的普通的2項運算子。例如`==`，就像`+`傳回兩項相加的結果，當左右都是一樣的時候傳回1，不同的時候則傳回0。
