Re: Compare two variables in acl

2022-06-23 Thread Seena Fallah
Yea exactly that was what I wanted.
Thanks. :)

On Thu, 23 Jun 2022 at 15:50, Tim Düsterhus  wrote:

> Seena,
>
> On 6/22/22 19:57, Seena Fallah wrote:
> > I'm trying to compare two variables in ACL but seems the one on the right
> > side is not rendering and assumed as a literal string.
> > Is there any example of how can I compare two variables in haproxy acls?
>
> Your question is very light on details (e.g. what you have attempted),
> but likely the `strcmp` converter does what you need.
>
> Best regards
> Tim Düsterhus
>


Re: Compare two variables in acl

2022-06-23 Thread Tim Düsterhus

Seena,

On 6/22/22 19:57, Seena Fallah wrote:

I'm trying to compare two variables in ACL but seems the one on the right
side is not rendering and assumed as a literal string.
Is there any example of how can I compare two variables in haproxy acls?


Your question is very light on details (e.g. what you have attempted), 
but likely the `strcmp` converter does what you need.


Best regards
Tim Düsterhus



Compare two variables in acl

2022-06-22 Thread Seena Fallah
Hi,

I'm trying to compare two variables in ACL but seems the one on the right
side is not rendering and assumed as a literal string.
Is there any example of how can I compare two variables in haproxy acls?

Testing on haproxy v2.6

Thanks.