Jump to content

String Concatenation // String-Verkettung


Recommended Posts

I can't seem to find how to do this in Lua, but it must be possible because it is the most basic of programming functions.

I seem to remember:

Begin
Var A = "Hello"
Var B = " World"
Var C = A + B
WriteLn C
End

As being the first ever program I wrote!

 

Edited by simonjackson1964
Link to comment
Share on other sites

Thanks, Andy.

This works:

$("Events").variables["TimeS"] = tostring(time)

$("Events").variables["List Name"] = "List " .. $("Events").variables["TimeS"]

Giving me the name of a list variable that is to be actioned at a given time!

Now for the next bit!

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
 Share

×
×
  • Create New...