py-myopl-code icon indicating copy to clipboard operation
py-myopl-code copied to clipboard

Getting InvalidSyntaxError

Open Sebwazhere opened this issue 1 year ago • 0 comments

var animal = random(1, 3)

if animal = 1 then print("You have Pikachu!") elif animal = 2 then print("You have Charmander!") else then print("You have Squirtle!") end

I made the keywords lowercase and added a random function, but it says the if is causing an InvalidSyntaxError, the example works, and I don't know what I did differently, it says a token can't appear after another token.

Sebwazhere avatar Nov 06 '23 22:11 Sebwazhere