your partially different answers confused me a bit.
so, I'm looking for a solution that will update measure2 and meter1 ONLY ONCE either the condition is "0" or "> 0". So measure2 and meter1 MUST be updated whenever the condition changes, but only once in any case. And ofc, measure2 MUST be disabled when condition is 0 and enabled when higher.
This could look like an easy question, but as I experienced some issue, i had to come here for the clarifications.
I think that this solution works as I wish, but it makes a glitch of the meter on every !Refresh.
Code: Select all
IfCondition=(#CURRENTSECTION# > 0)
IfFalseAction=[!UpdateMeasure "measure2"][!DisableMeasure "measure2"]
OnChangeAction=[!UpdateMeasure "measure2"][!UpdateMeter "meter1"]
The glitch disappears with IfTrueAction=[!EnableMeasure "measure2"][!UpdateMeasure "measure2"]
set, but since Yincognito said that if condiotion is above 0, it will update measure2 every 1000ms, it is not acceptable solution. Or I misunderstood something here.