#Global Variables trough multiple files

6 messages · Page 1 of 1 (latest)

visual storm
#

Like some counter that I change through the document files but as a list with new items instead of a number.

#

After researching a bit, it sounds like the state type.

dusty tapir
#

?r
Normal counters support lists of integers:

#let arrayCounter = counter("arrayCounter")

#context arrayCounter.display()

#arrayCounter.update((0,0,0))

#context arrayCounter.display()
clever ermine
#

the state value is tied to the state's key. You should be able to share state by just using the same key if I understand correctly. state("x").get() == state("x").get()