EasyScript instance variables

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Posts: 26
Joined: 17 Aug 2020 22:38

EasyScript instance variables

Post by xurg »

Am I free to put additional variables into "self"?
Anything to watch for when doing this?
Any other way to have instance variables across trigger invocations?

Edit: removed some banter.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster)
RaZberry ZW0500 1024/2 SDK: 6.82.01 API: 05.39
Z-Way version v3.1.1 (0b66875)
User avatar
Posts: 6073
Joined: 26 Jan 2011 19:36

Re: EasyScript instance variables

Post by PoltoS »

Into self? I think self is undefined there. But there is a global that is common for all EasyScripting scripts.

Code: Select all

global.x = value

if (global.x == value)
Post Reply