So if you wanna do something conditionally, you generally needs to ask the question, is the following true or false.
假如想在一定条件下做一件事情,你需要判断下这个条件,来看看条件是真还是假。
Do I have two yes answers if you wanna check two conditions at once? You know, this might seem to be a bit of a new context for some of you but consider a typical website.
我能不能对两个条件同时判断,来看看它们是不是都为真?,这些概念可能对你们中一些人有点新颖,那么就考虑一个典型网站。
You've got a loop, you've got a condition and a boolean to check if he's touching the edge, and some statements to tell him to shout or to actually turn around.
我们有一个循环,通过一个条件和一个布尔值来判断,是否触到了边缘,还有一些语句,让它回头并咆哮。
In scratch, a condition looks a little something like this.
简单来说,一个条件判断就像这一样。
应用推荐