Login Page - Create Account

Support Board


Date/Time: Fri, 31 Jan 2025 22:36:31 +0000



Post From: Calculation triggered by Time Value == comparison continues calculating after Time Values !=

[2019-06-01 21:19:19]
User907968 - Posts: 825
Hi,
Sorry there is an error.

Remove the following line from inside the calculation code block -
'CurrentTime = 0'

This is causing the triggerFlag to be reset immediately as -
(triggerFlag == 1 && RangeCloseTime != CurrentTime) will evaluate to true when CurrentTime = 0

I understand that RangeCloseTime == CurrentTime can be true for multiple calls to the function, but if the flag is being set and retained correctly then the following will not evaluate to true and the calculation block will not execute -
(RangeCloseTime == CurrentTime && triggerFlag == 0)