You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Robert Balent <rb...@redhat.com> on 2013/07/17 18:29:37 UTC

Re: == operator in Simple expressions

Hi,

any info about this? Or can you lead me to some previous discussion? Operator "==" in Simple expression works in 2.11 but not in 2.11.1 version. It's regression.


Tested with something like this:

<simple>${header.number} == 1</simple>


Regards,
Robert


----- Original Message -----
From: "Antoine DESSAIGNE" <an...@gmail.com>
To: dev@camel.apache.org
Sent: Wednesday, June 26, 2013 9:51:22 AM
Subject: Re: == operator in Simple expressions

Hi,

Unfortunately there's no response.

I'll try to rephrase: should the "==" operator be available in Simple
expressions? I want to know whether or not I should create an issue.

Thanks a lot for your insights,

Antoine.


2013/6/13 Antoine DESSAIGNE <an...@gmail.com>

> Hi everyone,
>
> We had a unexpected behavior with this simple expression:
> <setHeader headerName="isFour">
>     <simple>${body[value]} == 4</simple>
> </setHeader>
>
> It does not return true or false but a string like "4 == 4".
>
> The documentation is unclear about == operator used in expressions (and
> not predicates). Is this the desired behavior ?
>
> Thanks a lot,
>
> Antoine.
>