Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: ack! oops again-- RCX program quesiton
From: "Erik Nauman" <ENauman@xxxxxxxxxxxxxxxx>
Date: Mon, 7 Apr 2008 12:55:56 -0400

Sorry again, I'll be very careful not to hit ctrl + enter again in mid-post...


Maybe there's a better forum for this, but I have a question about using the 
loop command.
I'm trying to get the looping part of this RCX program to stop looping and go 
on to the next part of the procedure if the temperature reaches a certain 
value. If I put the final, raising procedure in place of [stop] it works but 
it loops the raising procedure and I don't want that part looping. How do I 
get out of the loop?

to start
procedure to lower the thermometer
loop [if temp1 > 310 [stop]
temperature]
procedure to raise thermometer
end

to temperature
sendmessage temp1
wait 10
end

Thanks,

Erik Nauman
The Hewitt School




  • Previous by thread: oops--RCX program quesiton
  • Next by thread: RE: ack! oops again-- RCX program quesiton

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008