wilddbill Posted October 19, 2014 Share Posted October 19, 2014 I am trying to test some programming. I want to use the "IF" statement to check for a keypad unlock code and turn a light on when the door is unlocked. As you can see my this code it turns the light on no matter what code is used to unlock the door. when I try to put the second line as part of the "IF" statement it wont let do it.. It puts it directly under instead. any advice? WB Link to comment Share on other sites More sharing options...
whitneyd Posted October 19, 2014 Share Posted October 19, 2014 Your command needs to be indented under the if. Drag the command onto the if and it will automatically indent it Link to comment Share on other sites More sharing options...
Cyknight Posted October 19, 2014 Share Posted October 19, 2014 And change the door code Link to comment Share on other sites More sharing options...
dogdvr Posted October 19, 2014 Share Posted October 19, 2014 no no leave it that way, by the way what is your address? Link to comment Share on other sites More sharing options...
wilddbill Posted October 19, 2014 Author Share Posted October 19, 2014 when I drag it the indent does not happen,,, I know how it works or how it should work.... not in this case.. but why? Link to comment Share on other sites More sharing options...
ILoveC4 Posted October 19, 2014 Share Posted October 19, 2014 when I drag it the indent does not happen,,, I know how it works or how it should work.... not in this case.. but why?Because you're doing it wrong. Drag it and drop it right in top of the question mark. Before you drop you'll notice the little arrow points right. Link to comment Share on other sites More sharing options...
wilddbill Posted October 19, 2014 Author Share Posted October 19, 2014 yes.. That was it.. I was dragging over the text of the first line but as V.I. said. It needs to be the icon.. Thanks for all your input. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.