Create turns

We've used a code posted somewhere else on this forum to get the create to turn a specific angle. Unfortunately, the create doesn't seem to be responding to the 'if' statements as it just sits there and spins... when we used our own code, the angle reading still wasn't working... to get it to go 90 degrees we needed to use 24 in the get_create_angle code. The code we borrowed that caused it to just spin is as follows: