not detect changing of list variable

Post your questions and help other users.

Moderator: Martin

Post Reply
acomagu
Posts: 6
Joined: 03 Jan 2015 10:47

not detect changing of list variable

Post by acomagu » 03 Jan 2015 11:06

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: not detect changing of list variable

Post by Martin » 05 Jan 2015 19:38

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

Post Reply