Eliot’s Tips and Tricks

Use '..' to join strings

Lua has a slightly unusual operator for concatenating strings, it is ‘..’

For example:

local Count = 10
local S = 'Fred '..' the dog had '..Count..' balls.'

Concatenation will change some types into their number representation.


One Comment

  1. Pingback: Will You Share Your Code? - iNTERFACEWARE Inc.

Leave A Comment?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.