title: Anylogic: how to compare parameter and variable value within statechart?
body: <p>In my Anylogic model I have a <code>hub</code> which can store 5 containers. So it has a <code>capacity</code> parameter with value 5. I also have given it a variable with the <code>numberOfContainers</code> stored at the hub at that moment. When I run the model I see that the variable works (it changes over time to the number of containers that is stored at that moment).</p>
  <p>Now I want another agent in my model to make a decision based on whether the capacity of the hub is reached at that moment (within its statechart). I tried to create a branche with the following condition:
  <code>main.hub.numberOfContainers &gt; main.hub.capacity</code>
  but it doesn't work, the statechart acts like the capacity is never reached, even if the number of containers is much higher than the capacity. Does anybody know how to make this work?</p>