-
-
Notifications
You must be signed in to change notification settings - Fork 552
Description
Make sure you're on the latest stable or beta build
- I have tested this on the latest stable or beta release
Is this a bug in companion itself or a module?
- I believe this to be a bug in companion and not a specific module
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
The attached trigger example will recreate the issue. The trigger uses a conditional WHILE Loop that writes to the log the value of the local variable called "index" and increments it by 1 each time the loop repeats. The loop should only repeat 5 times, but if you look at the log you will notice that it repeats 6 times. Placing a WAIT statement after the local variable update will resolve the issue, but this doesn't seem like a proper way to handle this. Custom variables do not require a Wait statement after being updated. Please note that the next time it runs, the While Loop will not even rexecute because the setting index variable to zero does not get applied. You will need another Wait command after setting to 0.
Steps To Reproduce
Log file results after 1st execution (No Waits):
Log file results after 2nd execution(No Waits):
Expected Behavior
With WAIT action after each local variable update (or by using a custom variable without WAITs):
Environment (please complete the following information)
- OS: Mac Silicon
- Browser: Safari
- Companion Version: v4.2.4Additional context
No response