I have setup a conditional server action and I’m having problems with it. I haven’t done very many of these, so I’m probably missing something.
I have two server actions where I am inserting and updating, then I set up a condition where if my post variable is false, run an update query and if it’s not, run a different update query. Only the “else” statement runs no matter what the post value is.
Here is my condition:
Here is the value from my server action. You can see the “workstarted” value is false, but only the “else” query runs.
Community Page
Last updated:
Last updated: