Chapter 18. Title = Anything You Like

That's a strange title, isn't it? You can pick anything you like and make it the title. But that doesn't mean the material covered in this chapter will change. Nope, this chapter covers two special types of block called the VARIABLE block and the CONSTANT block. You'll find these blocks useful when you need to store a piece of information for later use. This is a lengthy chapter, so there won't be any exercises. But the information here is very valuable for giving your robots the ability to save information and use it later, so take it slow and really try to understand how and when to use both new block types. So let's take a look.


Let's imagine for just a moment that you want to give SPOT ...

Get Lego Mindstorms NXT-G Programming Guide, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.