Chapter 13. math and logic

In this chapter, you’ll learn about the Math block’s Advanced mode, which lets you perform more sophisticated calculations in your programs. You’ll also learn about the closely related Logic block, which lets you combine logical values so your programs can make complex decisions. Other blocks that work with numbers are the Range block, Random block, and Round block, which are covered in this chapter as well.

the math block’s advanced mode

The Math block’s Advanced mode lets you perform complex calculations. You’ve used the Math block in several programs by selecting a single operation (addition, multiplication, and so on) and setting two parameters. The Advanced mode (Figure 13-1) lets you combine multiple operations and ...

Get The Art of LEGO MINDSTORMS EV3 Programming (Full Color) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.