Why doesnt this work?

But getting the relative location and getting a value as a number and then checking it towards another number has nothing to do with world location?