Jump to content

ComputerCraft Fail ´=´ expected


dragonmaster98

Recommended Posts

Without knowing what the code says, it's difficult to say for sure. But my guess is that you've put "=" somewhere where you meant to put "==", or vice versa. "=" sets a variable to a given value, whereas "==" is a way of comparing it to check if it's equal. For example,

local cowinparachute = "handsome"

This would set the local variable "cowinparachute" with the value of "handsome".

if cowinparachute == "handsome" then

This would check that the local variable "cowinparachute" is equal to "handsome".

The error message that comes up should also come with a number before it. This is the line number where the error takes place. Look it up, and you should be able to fix it pretty quickly.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...