Author Options:

What does "return" do? Answered

In the program to light the LED when the button is pushed, there is a segment which reads:

if (current == last)


I know what the return statement does generally, in the C language, but have never seen it used in programming Arduino boards before. I realize this is not an Arduino board, of course, but do not know where the code would return to.

1 Replies

bekathwiaBest Answer (author)2017-06-29

It kicks you to the beginning of the loop!

Select as Best AnswerUndo Best Answer