Page 1 of 1

Syntax question?

Posted: Tuesday 30 July 2019 22:43
by FAnl
Hi Guys,

I'm trying to use the commandArray statement with a variable:

Code: Select all

commandArray['..devicename..'] = "Off AFTER 180"
is that possible?

Regards, Frank

Re: Syntax question?

Posted: Tuesday 30 July 2019 23:14
by waaren
FAnl wrote: Tuesday 30 July 2019 22:43 I'm trying to use the commandArray statement with a variable:
Yes. Use

Code: Select all

commandArray[devicename] = "Off AFTER 180"

Re: Syntax question?

Posted: Sunday 04 August 2019 10:09
by FAnl
waaren wrote: Tuesday 30 July 2019 23:14
FAnl wrote: Tuesday 30 July 2019 22:43 I'm trying to use the commandArray statement with a variable:
Yes. Use

Code: Select all

commandArray[devicename] = "Off AFTER 180"
Super, thanks!