Using a list in a condition
Why isn't it possible to use a list in a condition with is in, for example?
Comments
-
First, the "how" to manage this situation. You can construct that either with the "some" higher-order filter, or by structuring it in the function stack by first running "has any element" followed by testing the output of that function in your function stack.
Stepping back, Xano's visual builders are wrappers around various subsystems. "IN" is a keyword in SQL that Xano is wrapping around in the query filtering system. The main PHP code that Xano uses for the function stack works differently, and Xano kind of matches that. That's the "why".And for "what's next", these kinds of subtleties come up frequently as part of our "hardest 5%" in office hours and forums on statechange.ai.
-
Hi,
I'm not 100% sure if it's available everywhere but in the case of array conditionals you can use "in" filter:
-
@Pawel Magdanski is right, this is available as a filter. Not all the same query operators are available through the rest of the function stack but you can accomplish the same expressions with filters.
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