If you are lost by now and dont understand what I am trying to do then i will tell you. I am trying to have my program run my first while loop (while x==1) but if the sensor reads < 20 then x should equal 2 and should skip two my secound while loop (x==2) I am not sure if this is how you do this but i dont see why not...so please help
Robot C is a bit different and i have realized im on a C++ site but the robot C people are all my age and dont know what they are doing. Im more worried about the program it self. The first while loop goes from line 16 to line 51 i dont see where your talking about.
im sorry i was looking at my program. It starts at 7 and ends at 42. I want the program to change from line 7 while loop and line 44. I made x a float because i tried making it a variable and an integer but it didnt even work remotely. When i am in the debugger it show that x will change but it wont run the lines from line 45 to 57.