Filter to set boolean based on the value of the input
Options
Luck Kanthatham-2308338
Member ✭
Is there a filter that can convert a text boolean value into actual boolean? For example, We have an import job that has boolean values like T,F,Yes,No,True, and False. We would like to just have a filter that can take these values and then set the boolean field based on certain rules.
Comments
-
yes, this filter is called "to_bool"
-
to_bool doesn't work on "T", "F", "Yes", nor "No".
-
it will not work for T,F...
Yes and No both should work. Just confirmed on my end. Boolean values supported are True, False... Yes, No... 0, 1 -
I could've sworn it didn't work on Yes, No. But I just tested this out and confirmed what you mentioned. Thank you.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback