Magic behaviour of Define Variable Action

Hi Support Team,

please find attached a sample project which should reveal a magic behaviour I discovered while programming.I'm not quite sure whether it is a bug or a feature...

As you see I have two variables (A & B) in the main project. In an action list I 're-declare' these variables for the case I include this project from another project and want to execute the 'Extra' Action List and A and / or B is not defined.

'A' works as expected: it is initialized once (i.e. if the variable is already set, it keeps its content)

'B' does not work as expected: it is initialized each time the action list is called.

The background is: I want to calculate the content only once; the value should be saved between different action list calls.

Is this a bug or do use this in a wrong manner?

Best regards

Michael

20110817_Declare_Variable.fbp7 (95 KB)