Page 1 of 1

not detect changing of list variable

Posted: 03 Jan 2015 11:06
by acomagu
Hi.

When a global variable including list changes, the trigger "Global variable" is not triggered.
Is this in the specifications?

Example:

Flow 1:
Script: global_test = newList();
addElement(global_test, 'aa');

Flow2: Trigger: Global variables: global_test

↑not triggerd!

Thanks for your time

Re: not detect changing of list variable

Posted: 05 Jan 2015 19:38
by Martin
Hi,

Yes, this is by design since adding an element to a list does not assign a different list to the global variable.
You could use a global variable that holds the size of the list and update this variable whenever you change the list. You could also use a global variable that holds a counter that is incremented each time you modify a list.

Regards,
Martin