I have many use cases where the program would be greatly simplified if I could conditionally execute a server action. Notionally the function would be a server action that has a 'Condition' tab very similar to the 'Condition' tab on triggers. The difference is that the 'Trigger' is the calling of the server action.
I have many tedious operations (100+ external sensors) where I only want certain actions associated with each individual trigger to happen at certain times of the day. If I could have the 'Condition' option, I would simply call the server action (from each individual 100+ unique possible trigger actions) and it would only execute when my conditions were met (such as time window in a day). I know that I could create a unique trigger variable for each possible 100+ unique trigger condition and do it that way, but the maintenance for a common server action becomes untenable.
How can I do a conditional server action? Is it possible to add this feature to server actions?
Gary.