Is integer value 0 treated as null in Xano?
Options
guiauto
Member ✭
I created a test endpoint with an input with an integer that can be null and passed the value 0. In the endpoint, there is a conditional that returns when the input value is null. The value 0 is returning null. 0 is considered null in Xano?
Best Answer
-
Hi @guiauto - it depends on the operator you use. == is considered a flexible equals. So in your example, values such as a null, 0, or blank would be considered the same. If you need an exact match then use the === operator. Here's our documentation on operators.
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