-
Notifications
You must be signed in to change notification settings - Fork 485
DPL Analysis: Introducing conditional expressions #6753
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
Conversation
* `ifnode(condition, then, else)` operation is added to expressions * these can be nested * all three arguments can be arbitrary valid expressions * `condition` needs to have boolean result, `then` and `else` should return similar types (ideally the same - both floats, or both boolean, etc.) * Added a test * Added `conditionalExpressions.cxx` tutorial example (note that it uses bitwise operations in filter expression and thus will only work as is with arrow > 3)
jgrosseo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
|
Mac is not happy... |
|
There was an issue with operations between configurables and literal values. In the filter expressions one would may need to use |
`ifnode(condition, then, else)` operation is added to expressions. These can be nested and all three arguments can be arbitrary valid expressions. `condition` needs to have boolean result, `then` and `else` should return similar types (ideally the same - both floats, or both boolean, etc.). A `conditionalExpressions.cxx` tutorial example is added (note that it uses bitwise operations in filter expression and thus will only work as is with arrow > 3).
`ifnode(condition, then, else)` operation is added to expressions. These can be nested and all three arguments can be arbitrary valid expressions. `condition` needs to have boolean result, `then` and `else` should return similar types (ideally the same - both floats, or both boolean, etc.). A `conditionalExpressions.cxx` tutorial example is added (note that it uses bitwise operations in filter expression and thus will only work as is with arrow > 3).
ifnode(condition, then, else)operation is added to expressionsconditionneeds to have boolean result,thenandelseshould return similar types (ideally the same - both floats, or both boolean, etc.)conditionalExpressions.cxxtutorial example (note that it uses bitwise operations in filter expression and thus will only work 'as is' with arrow > 3.0)@jgrosseo this is fully functional