It's still not that clear what you want to do...loop()
will automatically loop/repeat, unless you are stuck in another loop.
You can break out of a for-loop, while-loop, or do-while loop, with break
, but you shouldn't generally break-out of your main loop because your program will end and nothing will happen 'till you hardware-reset.
Or as Sembazuru suggested, you may need an [yurl=http://arduino.cc/en/Reference/If]if
I tried with goto but it only works inside their void.
is a function.
at beginning of a function prototype or function definition means the the function returns nothing when the function ends/returns. Otherwise, you'll see the varaible-type that's returned by the function (such as int
- The empty parenthesis indicate that no values are passed into
And FYI - It's generally considered "bad practice" to use goto