HourStarted() doesn’t evaluate to true

Forum Home Forums Understanding the Software Using Formulas HourStarted() doesn’t evaluate to true

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16659
    WayneS
    Participant

    When I use the formula below, it constantly increments and does not reset to 0. It appears to me the HourStarted() doesn’t ever give a true.

    EveryMin(() => HourStarted() ? 0 : Val() + 1)

    regards

    #16662
    manjey73
    Participant

    HourStarted() is running with a delay. The revision of the formulas has apparently not yet been included in the release.

    HourStarted

    Use a translator if you need to understand.

    #16663
    manjey73
    Participant
    The reason turned out to be that the HourStarted formula was triggered after 30 seconds, as the hour arrived, and EveryMin was triggered at 0 seconds. The delay in the HourStarted formula is useful in some cases.
    You can update the Scripts table in the Calendar entry to make it work.:

    EveryMin(() => HourStarted() ? 0 : Val() + 1)

    These changes will be included in the project template in the next release.

    • This reply was modified 1 month, 1 week ago by manjey73.
    #16665
    WayneS
    Participant

    Thanks,

    That makes sense, I did wonder why it was set at >=30 seconds – will fix that.

    regards

    Wayne

    #16666
    manjey73
    Participant

    As the author noted, the delay in hourly formulas can be useful, but here it is necessary to combine the minute with the hour, and this usefulness went sideways 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.