This seems like it should be so easy… but it’s baffling me. The user enters a date and the program creates a set of database records where one of the fields is dependent on the day of the week from the entered date. An example using the formatDate(EnteredDate;“dddd”) to get output:
To create the MySQL database record, I tried both Switch and If statements with no luck. I image this is a data type problem? But I just don’t know what to try next:
Switch sample:
If sample:
The result is blank:
Weirdly, it does provide a result when I change the to the ‘regular’ = sign:
But is just showing the result of the first If statement - not the one it should be matching…
Appreciate any guidance you can provide.
Thank you!