Close parenthesis, named operator error


#1

mother line 3: Invalid expression at char 47, expected CLOSE_PARENTHESIS, was: NAMED_OPERATOR [or]

I’m getting this error, I don’t know what I’m doing wrong. I’ve made a multiple if statement & that worked, this is written the same way. Below is how it’s written.
It’s supposed to show this paragraph if your a wolf or wolfdog, or the second is to show if your a coyote or coydog, & the third is if your something that is not one of mentioned ones.

*if (((breed = “Wolf”) or (breed = “Wolfdog_HC”) or (breed = “Wolfdog_LC”))
(paragraph)
*goto label
*if ((breed = “Coyote”)) or (breed = “Coydog”))
(paragraph)
*goto label
*else
(paragraph)
*goto label


#2

You’re missing a parentheses. You have
*if (((breed = “Wolf”) or (breed = “Wolfdog_HC”) or (breed = “Wolfdog_LC”))
Should be:
*if (((breed = “Wolf”) or (breed = “Wolfdog_HC”)) or (breed = “Wolfdog_LC”))


#3

now I’m getting this
mother line 7: Invalid expression at char 43, expected no more tokens, found: CLOSE_PARENTHESIS [)]

I think *if statements hate me cuz thats the only problem I’m having XD


#4

That error shows up for me when the number of parentheses is off.

So on your first line here, you have

*if (((breed = “Wolf”) or (breed = “Wolfdog_HC”) or (breed = “Wolfdog_LC”))

If I’m counting parentheses right, you should have another close parenthesis In the middle, so:

*if (((breed = “Wolf”) or (breed = “Wolfdog_HC”)) or (breed = “Wolfdog_LC”))

And then on the second one, you have

*if ((breed = “Coyote”)) or (breed = “Coydog”))

Which I think ought to be

*if ((breed = “Coyote”) or (breed = “Coydog”))

Which is one less than you currently have.

EDIT: ninja’d, nvm.


#5

Ok, it’s working. Thanks guys, I’m just an idiot lol