Page 1 of 1

(solved)rules define own variable within rules

Posted: 16 Mar 2019, 18:57
by riker1
Hi

is it possible to define a variabe
- like : %ruleversion% = "version"

which can be used later in publish command?

I know the workaround to set a generic dummy device with event and eventvalue, but it would be easier to have a variable within rules to be used after flashing the rules .

thanks T

Re: rules define own variable within rules

Posted: 16 Mar 2019, 19:07
by grovkillen
As of the last 2-3 months you can define up to 16 internal variables.

Code: Select all

Let,16,123
The rule above will set variable 16 to the value 123. You can use the variables in either using this syntax:

%v16%

Or

[VAR#16]

How you want to publish the version number is then up to you.

Re: rules define own variable within rules

Posted: 16 Mar 2019, 19:18
by riker1
ok, that is perfect.

thanks

Re: (solved)rules define own variable within rules

Posted: 16 Mar 2019, 19:20
by riker1
also alphanumeric once?

Thanks

Re: (solved)rules define own variable within rules

Posted: 16 Mar 2019, 20:43
by grovkillen
riker1 wrote: 16 Mar 2019, 19:20 also alphanumeric once?

Thanks
No, only floats.