![iOS 12 Programming for Beginners](https://wfqqreader-1252317822.image.myqcloud.com/cover/76/36699076/b_36699076.jpg)
上QQ阅读APP看书,第一时间看更新
Comparison operators
We can also compare different numerical variables. These might be familiar to you from math class. Let's enter these in to Playgrounds:
![](https://epubservercos.yuewen.com/2E52D1/19470383901517806/epubprivate/OEBPS/Images/e8c88893-058d-4355-b965-99440357d137.png?sign=1739678716-w875zOZfsw1nU2AaHe1q0F2gfHoqPXUd-0-f08a029fbd3d1f86aa33b777360b03b2)
As you can see in the Results panel, these comparison entries result in true or false based on the values that you enter (here, these are 1 and 2).