Why are my if and if else loop not being entered? (RPG creature search)

Creature data is not defined is what is coming up and know how to solve it. I should use my brain when writing that line of code not what I saw from a bad read of the program I am basing it on.