Skip to main content
Solved

Unique values in AttributeFilter end up as one value.


timnil00
Contributor
Forum|alt.badge.img+5

We have a unique number 0 and 00 to identify paying customer.

I set (0 and 00) in the AttributeFilter but both values end up on either 0 or 00 depending on wich one in the list comes first.

What am i missing here? or should i set up a tester instead for each number or text value?

 

/Tim

Best answer by david_r

I'm suspecting that the AttributeFilter is using some sort of 'intelligence' to decide whether to make the comparison as string or as an integer. In this case it seems like it's doing an integer comparison: 0 == 00.

If you switch to using the TestFilter, you can force the use of a string comparison: 0 != 00

For example:

image

View original
Did this help you find an answer to your question?

2 replies

david_r
Celebrity
  • Best Answer
  • December 9, 2022

I'm suspecting that the AttributeFilter is using some sort of 'intelligence' to decide whether to make the comparison as string or as an integer. In this case it seems like it's doing an integer comparison: 0 == 00.

If you switch to using the TestFilter, you can force the use of a string comparison: 0 != 00

For example:

image


timnil00
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • December 9, 2022

Okey, well this seems to work, thank you so much :).

 

2022-12-09_13-43-30


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings