In this chapter you'll learn about using 'If' statements,using 'while' loops, using 'for' loops, using 'Switch cases', using maths in Arduino, creating functions, creating sophisticated code, by the end of this chapter, you will have created your very own calculator using different functions, loops, and Serial functions.

Transcript

Hello, and welcome back to the Arduino Workshop. In this chapter, we'll be looking at using logic statements to give our code some decision-making capability. Logic statements are a method of controlling one section of code based on the outcome of another. If statements, while loops, for loops, and switch cases are all examples of these, and we'll also take a look at mathematical operations and functions which you can use to bring everything together. So let's begin.

Feedback

Please continue if you would like to leave feedback for any of these topics:

  • Website features/issues
  • Content errors/improvements
  • Missing products/categories
  • Product assignments to categories
  • Search results relevance

For all other inquiries (orders status, stock levels, etc), please contact our support team for quick assistance.

Note: click continue and a draft email will be opened to edit. If you don't have an email client on your device, then send a message via the chat icon on the bottom left of our website.

Makers love reviews as much as you do, please follow this link to review the products you have purchased.