Global Variable Access Limit Bug (Breaks After 4 Calls)

Steps to reproduce the bug.

1. Create any number global and assign it a value.

2. Call it somewhere else more than 4 times! Note: calling it indirectly for example assigning it to a local variable does count too.

Issue: the global stops functioning (outputs nothing/is empty). In the example below it should output 1, 2 and 3. Not for 4 because one slot is used up by creating the local variable!

5. Is calling multiple times the local variable… to prove/test if it is only for the number global.

$lv(i, gv(n))$1: $gv(n)$
2: $gv(n)$
3: $gv(n)$
4: $gv(n)$
5: $#i$, $#i$, $#i$, $#i$, $#i$, $#i$, $#i$, $#i$, 
    $#i$, $#i$, $#i$, $#i$, $#i$, $#i$, $#i$, $#i$

1 Like

Additional Note! Seems to apply for textglobals too! gv=type TEXT / Formulas [10]

This only happens for globals set to a formula, repro steps are:

  1. Create any type of global (I’ll use a number global called n)
  2. Set that global to a formula. Set the formula to 1 (for example).
  3. Somewhere in the preset, access the global multiple times within one formula:
    $gv(n)$$gv(n)$$gv(n)$$gv(n)$$gv(n)$$gv(n)$$gv(n)$
    

The formula output box in the formula editor for me shows 1111, while the text module on the preset preview after exiting the formula editor shows 11111.