Not sure if I am going mad or there is a bug here.
This is a edit from a larger server action.for managing multi user access for a future webinar
A fairly simple change of session values dependent on the date comparison {{$_SESSION.servertime < $_SESSION.lockwhen}} which is mirrored by the variable “ctest”
Variables are managed by sessions then returned to App Connect via Set Value with output checked
These values are then displayed in a simple app connect page
This action is polled every 10 seconds by an action scheduler
The debug variable only serves to show which “leg” of the condition has executed
Clicking the “Set Lock” button sets the “Lockedwhen” field/session variable to now+40 seconds to toggle the condition when expired
So here we see the action when the condition is true:
We see that the condition evaluates to true and the “then” leg is executed proved by debug = 1
As the time counts, when the server time passes the “lockedwhen” time then the condition ctest switches to false as seen below
HOWEVER the “else” conditions are not set by
These conditions still show the values set in the “Then” step, not the “else” with debug still set to 1 indicating leg “then”
Here is a short video clip of the code in action
serveraction-then-else.mp4 (67.6 KB)
The page can be found at
https://wapplervirtualacademy.com/multiuser/timecheck2.php
Anyone any ideas?
Last updated: