Attempting something weird

anonFunction with a while if else loop test