Hello,
I am looking to create a conditional in an elasticsearch drop processor and running into some trouble. This should be rather simple I think, I'm just missing something obvious.
I would like to accept all documents if field task eq 356
I would like to accept documents if task eq 506
AND total_consumption > 95
This is some code I'm trying but its throwing formatting errors:
if (ctx.task != 356) || (ctx.task != 506 && ctx.total_consumption < 95)