lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hallo,

On Tue, Jun 15, 2010 at 11:17 PM,  <kenk@heroesent.com> wrote:
> Hi there,
>
>   Ya, I was trying that... but how do I insert a variable in between the [[
> ]] ... everything inside that becomes a literal string. I know I could write
> out to file [[ and then the file path and then ]] ...But how do you get, for
> instance...
>
> filePath = "C:\\apples\\boo\\test.boo";
> copyFile = [[ filePath ]];
>
> So that copyFile becomes: [["C:\apples\boo\test.boo"]]
>

     copyFile cannot become that. The '[[' and ']]' are just syntax,
they are not part of the value of the variable.

-- 
-alex
http://www.artisancoder.com/