09-23-2020, 09:09 PM
Great! Just to see if I understand, here is what I was thinking:
The second to last (site) has the outer value, and the last has the inner?
Code:
(forEach Site
(sites Occupied by:P1 component:"DoubleCounter")
(if
(= 0 (state at:(site)))
(and
(forEach Site
(sites Group at:(site))
(set State at:(site) 1)
)
…
)
)
)