Hi, I'm trying to run a script which asks the player to enter a number code. if correct, a script runs to move an object, and if incorrect, nothing happens.
I'm working from a vague tutorial and I just need someone to take a quick look at the script and tell me what is incorrect. I'm sure it'll be easy to spot for someone versed in the program.
I dont have a strong scripting background so the answer is hard for me to find.

The error message I get is:
Error running script: Error compiling expression 'code = 4059': CompareElement: Operation 'Equal' is not defined for types 'String' and 'Int32'
thankyou in advance to anyone who helps