Does a C block have knowledge of what step is being run?

In my opinion, you have options to put the global_count in Destroy() or in if(!opaque){}. Both of them are only called once throughout the whole transient simulation.

Destroy() at the end of sim

if(!opaque){} at the t = 0;

1 Like