Abstract
In Chapter 15, I introduced you to the COMPARE block, which takes two numbers, A and B, and examines them to determine if A is greater than, less than, or equal to B (depending on the option you select). The result of this comparison is then converted to a Logic data type (either True or False) that can be used as output using a data wire. In Chapter 16, I showed you how the RANGE block examines a value and determines whether it falls between an upper and lower value—a True or False response is then generated.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2010 James Floyd Kelly
About this chapter
Cite this chapter
(2010). Yes? No? Maybe?. In: Lego Mindstorms NXT-G Programming Guide. Apress. https://doi.org/10.1007/978-1-4302-2977-3_17
Download citation
DOI: https://doi.org/10.1007/978-1-4302-2977-3_17
Publisher Name: Apress
Print ISBN: 978-1-4302-2976-6
Online ISBN: 978-1-4302-2977-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)