THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Notice: Currently and
or or
can only be used once in a simple language expression. This might change in the future.
The syntax for AND is:
Code Block |
---|
${leftValue} OP rightValue and ${leftValue} OP rightValue
|
And the syntax for OR is:
Code Block |
---|
${leftValue} OP rightValue or ${leftValue} OP rightValue
|
Some examples:
Code Block |
---|
simple("${in.header.foo} == 'foo'") // ' ' can be omitted simple("${in.header.foo} == foo") // here Camel will type convert '100' into the type of in.header.bar and if its an Integer '100' will also be converter to an Integer simple("${in.header.bar} == '100'") simple("${in.header.bar} == 100") // 100 will be converter to the type of in.header.bar so we can do > comparison simple("${in.header.bar} > 100") // testing for null simple("${in.header.baz} == null") // testing for not null simple("${in.header.baz} != null") |
...