[snip] toggle_light(1); sleep(120); toggle_light(1); toggle_light(2); move('self', 'room/');
if ($lightbulb['temp'] > $room['temp']) { echo "switch #1"; } elseif ($lightbulb['ison']) { echo "switch #2"; } else { echo "switch #3"; } hm.. i had to keep it OT somehow :) [/snip] :7) Curt. However, Curt does bring up a good point....given a real world situation create the decision logic (in code format) that demonstrates you grep the path needed to arrive at a conclusion. As many of us model business processes this is a valid method for determining familiarity with the problem solving method in a code based world. Some of you requested another situation.... You are presented with three crates. One is labled 'apples', one is labled 'oranges', one is labled 'apples and oranges'. The lables have been mis-applied with none of the lables being on the correct crate. To be perfectly clear ( :7) Brian! ) one crate contains apples, one contains oranges, and one contains apples and oranges...but you do not know which crate contains which fruits. Can you draw one fruit from a single crate (without being able to see inside the crate) and determine where the labels should be re-applied in order to correct the problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php