Page 1 of 1

lua .. command

PostPosted: Sat Feb 22, 2014 4:58 pm
by markltbl
Hi sorry to all those who may think this is a simple and silly question but im just starting to learn lua code. Im finding many .. commands in sorce codes what does this mean. For instance

local name = profile:id() .. "(" .. source:name() .. ", ".. n ..")";
instance:name(name);

thanks in advance

Mark

Re: lua .. command

PostPosted: Mon Mar 03, 2014 10:39 pm
by Valeria
Hi markltbl,

This way you can create and set a name of an indicator.
A name of an indicator consists of:
ID (profile:id()), name of the source (source:name()) and parameters (n).
But you can set any name which you like.

Re: lua .. command

PostPosted: Thu Mar 06, 2014 3:06 am
by Apprentice
Like This

name = " ID " .. profile:id() .. " Name of the source (" .. source:name().. ")" .. " Parameter(" .. n .. ")";

Re: lua .. command

PostPosted: Tue Mar 25, 2014 7:52 am
by markltbl
Thanks Valeria and Apprentice.
Appreciate your help.