Jump to content

Variables and arithmetic (simple question)


Antoni

Recommended Posts

Posted

So I'm learning Lua and when I do this:

n = 20 
s = 390 
= n + s 

I get the error:

input:3: unexpected symbol near '=' 

I think my tutorial is giving me an example like this from 5.1 so how would I write this in 5.2?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...