How to put conditions in ferret? #666
-
I want to run a loop until a particular condition is satisfied, for which I might need to use a checking condition. How to do it? Also, how can I break a loop in between when a particular condition is not satisfied? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, Ferret's query language is based on Arango's Query Language (AQL) which is primarily declarative. In your case, though, I would try to use In the future releases, we are planning to add |
Beta Was this translation helpful? Give feedback.
-
In embedded scenario, you can pass in a context with cancellation and terminate an execution at any time. |
Beta Was this translation helpful? Give feedback.
-
No, I mean when you start an execution of your script, pass the context into
Yes, you can! Your type must implement To iterate over your types you need to implement I'm gonna write a dedicated blog post about embedding Ferret and hopefully update the docs. |
Beta Was this translation helpful? Give feedback.
No, I mean when you start an execution of your script, pass the context into
Program.Run
method: