-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a kind of "If/else" available in "eval" nodes? #603
Comments
@jdursel I think you can do something like this:
Then active will be boolean. |
And if you want to use and int type instead of boolean just convert it:
Which will output a 1 or 0 accordingly. |
Hello, It is probably due to the version of kapacitor 0.12 |
I think it is the same kind of issue as : #501 |
Correct the suggested solutions require 0.13 or greater. Also #501 should On Wed, Jun 8, 2016, 1:41 AM jdursel notifications@github.com wrote:
|
Hello,
I would like to do something like if/else to store a state in a new output measurement.
data
|eval(lambda: if "value" gt 18 then 1 else 0).as("active")
Is it possible?
Thank you
John.
Kapacitor "0.12"
The text was updated successfully, but these errors were encountered: