digitalRead() condition in 'while' loop not triggering

(digitalRead(extendedEndstop) == LOW)

Ah, thanks guys! What a rookie mistake...

Thanks again, Zeb.