Code not woking correctly and i dont know why it wont run the last if statement

i think i found anther problem. when i asked the display to only show input1 it displayed 0 as in it didnt have a value.