#Getting if statement to stop running when satisfied

8 messages · Page 1 of 1 (latest)

analog pebble
#

I cannot get this if statement to stop running when the beam is broken. I tried to by changing a variable within the if statement to stop it from running but the variable doesn't seam to change.

regal ivyBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

heavy anchor
#

This is Arduino code isn't it?

#

BTW could you just remove all the comments as they describe exactly what the code does, therefore are completely redundant. Consequently they prevent you from posting the code and use syntax highlighting.

analog pebble
#

Required for turning it at end of my project

analog pebble
#

I found the problem I was using a single = as compare instead of ==

#

!solved