Skip to main content

Hi!

I have 2 attributes, one with the value to test and one with the test.

I would like to do an automatic test based on this 2 attributes in order to keep or not entities.

I tried expression evaluator and attribute validator but I don't find the good syntax.

Indeed, on my second attribute I could have a mathematical test like ">50" or a range like "[50-60]".

It work for ">50" on expression evaluator but I don't suceed with the range.

Do you have an idea?

Thanks!

The range attribute needs to be structured like

(50,60) or 650,60]

to work with the In range operator.

Square brackets indicate can be equal to as well as greater than/less than


thanks for your answer,

I tried on expression evaluator but the result is <null>.

On my screenshot, @Value(test) = [50,60].

 


thanks for your answer,

I tried on expression evaluator but the result is <null>.

On my screenshot, @Value(test) = [50,60].

 

I missed that you were trying to do this in an Expression Evaluator, you need a tester


I missed that you were trying to do this in an Expression Evaluator, you need a tester

the problem is the test can be a range or a mathematical test (>50 for example).

so I would like to put the complete test on the 2nd attribute. ex :

attribute 1 : value to test

attribute 2 : test : ">50" , "in range [50,60]", etc.

so I would like to write on the Expression Evaluator : "@Value(attribute 1)@Value(attribute 2)". but it work only with the mathematical test...

so I can't use testfilter...


the problem is the test can be a range or a mathematical test (>50 for example).

so I would like to put the complete test on the 2nd attribute. ex :

attribute 1 : value to test

attribute 2 : test : ">50" , "in range [50,60]", etc.

so I would like to write on the Expression Evaluator : "@Value(attribute 1)@Value(attribute 2)". but it work only with the mathematical test...

so I can't use testfilter...

In Range isn't a math operator that you can use in the expressionevaluator


In Range isn't a math operator that you can use in the expressionevaluator

That explain why I don't succeed :)

So I get round the problem. With a tester I separate the value with a range from the others. If I have a range, I transform the brackets on < or > on the field and I use a specific syntax on expression evaluator.

Thanks!


That explain why I don't succeed :)

So I get round the problem. With a tester I separate the value with a range from the others. If I have a range, I transform the brackets on < or > on the field and I use a specific syntax on expression evaluator.

Thanks!

I was going to suggest using a conditional statement in an attribute creator one step prior which could be used to create a correctly formatted statement

So create an expression depending on the value in test


Reply