英文:
Expression to have equal between range values
问题
There is equals(value)
method in nifi expression language where we can give single value. Let's assume: equals(1)
. My question is there a possibility to give range of values? Something like: equals(1-40)
.
在 nifi 表达式语言中有一个 equals(value)
方法,我们可以传递单个值。假设:equals(1)
。我的问题是是否有可能传递数值范围?类似于:equals(1-40)
。
英文:
There is equals(value)
method in nifi expression language where we can give single value. Let's assume: equals(1)
. My question is there a possibility to give range of values? Something like: equals(1-40)
答案1
得分: 1
你可以使用 le(小于或等于) 和 ge(大于或等于) 一起使用,例如:
${ value:le(40):and ( ${value:ge(1)} ) }
英文:
You rather can use le(less than or equal to) and ge(greater than or equal to) together such as
${ value:le(40):and ( ${value:ge(1)} ) }
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论