I am trying to assign the return value of read to a variable and at the same time check a condition on that value inside the while condition.
read
while(r