Login Page - Create Account

Support Board


Date/Time: Wed, 02 Jul 2025 04:48:25 +0000



Post From: Count set to 0 every tick

[2020-06-22 15:51:03]
User907968 - Posts: 840
it is like it is reset to 0 @ eack new tick.

Each time the function is called, your variable 'periodCount' will be uninitialised i.e. have no value set.
Read this to understand when the function is called using automatic looping:
Working with ACSIL Arrays and Understanding Looping

If you want the variable to retain its value between calls to the function, there are the persistent variable functions available:
ACSIL Interface Members - Functions: Persistent Variable Functions