03-07-2012, 11:00 PM
This is the situation:
I have a key that I pick up, and a door behind me. I want to code it to find out if the door is closed, to open it, and if it's open, to close it. I'm not sure if this would be an actual "if" statement, but the way I'm looking at it it would sound like one.
I'm just having trouble combining the functions to make one, or having one call the other.
Thanks!
I have a key that I pick up, and a door behind me. I want to code it to find out if the door is closed, to open it, and if it's open, to close it. I'm not sure if this would be an actual "if" statement, but the way I'm looking at it it would sound like one.
I'm just having trouble combining the functions to make one, or having one call the other.
Thanks!