Trying to programm a line follower robot

I replace 'while' with 'else if' and i don't see any change.Do I have to change something at the loop ()?
Sorry if i make fool questions but i have very little experience on programming.