Please help me with my Conditional Server Action

Yes, my form is set to post. It’s pretty simple, here it is.

 <form id="form2" method="post" is="dmx-serverconnect-form" action="../api/IndPay/ClockWorkerIn" dmx-on:success="scListEmployees.load({});scActiveDoorList.load()">
  <input id="WorkStarted" name="workstarted" type="hidden" class="form-control" dmx-bind:value="content.scAppointmentDetails.data.queryAppointmentDetails[0].WorkStarted">
  <input id="ClockInUserID" name="userid" type="hidden" class="form-control" dmx-bind:value="UserID">
  <input id="ClockInLocationID" name="locationid" type="hidden" class="form-control" dmx-bind:value="LocationID">
  <input id="ClockInAppointmentID" name="appointmentid" type="hidden" class="form-control" dmx-bind:value="content.varAppointmentID.value">
  <input id="ClockInModuleID" name="moduleid" type="hidden" class="form-control" dmx-bind:value="varModuleID.value">
    <button type="submit" class="btn btn-clockin btn-block text-xl-left">{{FirstName}} {{LastName}}</button>
 </form>

The flag I’m using for the condition statement is the “workstarted” input. It is coming from MS SQL as a bit field. It comes across in the response payload as false.

Content-Disposition: form-data; name="workstarted"

false

In other usages of bit fields, I have not had to wrap it in quotes, I just use true/false.

Here is my server action with post variables: