Can you make an input go low even when it is high?

Thanks majenko,
Could you give me an example of the code, I have other simular type uses too. It would be a big help. I could just mod as needed.Just learning code.
Thanks