If you enter a condition where you are checking for the text result “true” or “false”, it won’t place the text within ’ '. If you attempt to add them manually, they’ll be automatically removed. The only way I’ve found to fix this is to manually place them within the json, which doesn’t appear to cause any issues and works correctly, but that’s pretty inconvenient.
As opposed to any other text:
I’m not sure if this is intentional, but if it is, can it please be made so it doesn’t automatically remove the ’ ’ when entering them manually?
Well we can’t really see the difference between a string quoted true or regular true and usually people want to enter the true as is and not as string so that is why we auto convert it.
Maybe you can use other value than a string true to check.
This isn’t possible for this project. The database gets 7+ million entries daily from external software, which cannot be easily changed. Could it not be an option within Wapplers settings to not automatically remove apostrophes if manually entered the code section?
Only workaround I have found for this is to manually type the condition in the condition input field: {{exec == 'true'}}
Don’t use the picker, just type it in, and you can see the correct expression in the UI.
I had a similar use case couple of weeks ago, but have forgotten why it was incorrect on Wappler’s end to remove the single quotes. Wanted to post here, but couldn’t find time, and now I don’t remember.