LEGO Engineering

| | | | | | | |
What is the container's container?


22nd of April, 2010

(0 )


The container's container is the container that corresponds to the container's number, for example, the value of the container's container if the container's value is zero is the value of the red container.

The program below displays the number 50, indicating that this is the value of the red container:

containers_container_pic_1.jpg

This program displays whatever is in the yellow container:

containers_container_pic_2.jpg

This program doesn't display anything since there is no variable that corresponds to 50:

containers_container_pic_3.jpg

The container's container allows you to use the value of one container (the container specified by Container #) to choose another (specified by Container).

The value in the container, specified by the Container #, is used to choose a container. The value of that container is output through the Container Value.




AG
ses

   :
   :
* :
* :
 


Home | About Us | Contact Us

© 2013 Center for Engineering Educational Outreach, Tufts University
© 2013 The LEGO Group. All rights reserved.