Read into a variable and then test it vs doing it all in one statement. It will allow for debugging and further processing of what was read in. Don't do it this way:
if...