py-myopl-code
py-myopl-code copied to clipboard
Getting InvalidSyntaxError
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.