在范围值之间保持相等的表达式

huangapple go评论54阅读模式
英文:

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)} ) }

huangapple
  • 本文由 发表于 2023年5月14日 17:18:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76246703.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定