I need help guys, please.

How to check input's value if its true(oped the door) or false(do not open door, keep it shoot)

here is my code:
Code:
function display_controlP()

{
     while (key_enter) {wait (1);} // wait until the player releases the enter key
       str_cpy(Pcode_str, "#50"); // reset the input string
       inkey(Pcode_str); //  input control panels code
       reset (controlP_pan, SHOW); // and then let's hide the panel
       if (you == player)
       {
               my.event = NULL; // make the entity insensitive to other collisions with the player (for now)
               controlP_pan.flags |= (TRANSLUCENT | SHOW); // display the image
               while (vec_dist (player.x, my.x) < 100) {wait (1);} // wait until the player moves away from the entity
               my.event = display_controlP; // the entity is sensitive to impacts again
               controlP_pan.flags &= ~SHOW; // hide the image until the player collides with the entity again
       }

}




Honesty will get you far, were dishonesty will get you only so far in life.