placemark in loop?

For makers who have purchased an Adafruit Starter Pack, get help with the tutorials here!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
bubipoo
 
Posts: 1
Joined: Sat Jul 19, 2008 4:59 am

placemark in loop?

Post by bubipoo »

Hi Guys,
Is it possible to have a "label" or "bookmark" within the loop code so that if a condition is met the looping will goto this spot instead of to the start of the loop section?

thanks in advance

bubipoo

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Post by mtbf0 »

not sure exactly what you want, but it seems like it should be doable with a conditional or a switch statement. there's even a goto, but such things are discouraged.[/code]

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

yup its hidden but you can put a "goto" inside gcc code
ive been known to use it sometimes :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Starter Pack”