赛派号

克拉玛依gdp排名全国第几 () and ()

() and () and Category Operators Type Boolean Introduced in 11Oct03 (0.x)

The () and () block is an Operators Block and a Boolean Block. The block joins two boolean blocks so they both he to be true to return true. If they are both true, the block returns true; if only one is true or none are true, it returns false.

This block can be stacked inside itself, which can be used to test more conditions.

Example Uses

This block is used for checking if two or more conditions are true at the same time. Some cases of this are:

Lose health if "I'm touching the fire and I do not he my shield up." forever if then change [lives v] by (-1) Say a button is clicked if the mouse is touching it and the mouse is down. forever if then say [a button is clicked] end end Checking if the final level has been beaten and the player has enough points forever if > :: control C say [Congratulations! You beat the game!] for (5) seconds stop [all v] Workaround Main article: List of Block Workarounds

This block can be replicated with one of the following:

not set [and v] to [false] if then if then set [and v] to [true] end end

This works since false booleans are evaluated as 0, and true booleans are evaluated as 1.

See Also () or () Truth tables v • d • eOperators Blocks () + () () - () () * () () / () Pick Random () to () () < () () = () () > () () and () () or () Not () Join ()() Letter () of () Length of () () Mod () Round () () of ()More blocks...

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至lsinopec@gmail.com举报,一经查实,本站将立刻删除。

上一篇 没有了

下一篇没有了