Skip to content
Discussion options

You must be logged in to vote

This is not possible, the query language used in schemes doesn't support closures. It's not PHP.

I think now it makes sense to add some filter methods like this:

collection@: site.descendants.filterBy('amountOfMagic', '>=', 100)

And these filter could be ==, !=, ===, !==, >, >=, <, <=, etc. (we can add more in the future)

We are in time to alter the API just before Formwork 2.0.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RWDevelopment
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants