If it works in the ExpressionEvaluator it should also work in the AttributeManager.
One thing you can check is whether or not you have entered this in the AttributeManager's arithmetic editor (which mimics the ExpressionEvaluator) or the text editor, in which case you'll get a text string as result... (I know I often make that mistake myself).
If that's not it, I'd like to know what kind of error message you're getting.
If it works in the ExpressionEvaluator it should also work in the AttributeManager.
One thing you can check is whether or not you have entered this in the AttributeManager's arithmetic editor (which mimics the ExpressionEvaluator) or the text editor, in which case you'll get a text string as result... (I know I often make that mistake myself).
If that's not it, I'd like to know what kind of error message you're getting.
Yes, I could really use a little message that says
"It looks like you've entered an arithmetic expression in the text editor, do you really mean to do this"
Yes, I could really use a little message that says
"It looks like you've entered an arithmetic expression in the text editor, do you really mean to do this"
and in addition to that automagically add the @Evaluate() function
If it works in the ExpressionEvaluator it should also work in the AttributeManager.
One thing you can check is whether or not you have entered this in the AttributeManager's arithmetic editor (which mimics the ExpressionEvaluator) or the text editor, in which case you'll get a text string as result... (I know I often make that mistake myself).
If that's not it, I'd like to know what kind of error message you're getting.
Ok i'm still a bit confused, my expression is:
((@Value(SCORE)/20)*@Value(LOADING))+@Value(SCORE)
which should work right? It appeared to wrok in my ExpressionEvaluator
Now I'm getting this error:
Is there some trick I'm missing?
I've re-wrote and tried the expression in multiple ways, but alas no success. I tried evaluating the variable before the AttributeManager, no luck with that.
Ok i'm still a bit confused, my expression is:
((@Value(SCORE)/20)*@Value(LOADING))+@Value(SCORE)
which should work right? It appeared to wrok in my ExpressionEvaluator
Now I'm getting this error:
Is there some trick I'm missing?
I've re-wrote and tried the expression in multiple ways, but alas no success. I tried evaluating the variable before the AttributeManager, no luck with that.
It looks like you might have a similar error in an earlier transformer where you create the SCORE attribute. It looks like instead of being a number, SCORE is set as 42*1.0/1.0
It looks like you might have a similar error in an earlier transformer where you create the SCORE attribute. It looks like instead of being a number, SCORE is set as 42*1.0/1.0
Good idea, I'll check my previous transformers and report back!
Good idea, I'll check my previous transformers and report back!
I can confirm it all works as expected! Now time for me to leave the office, thanks @redgeographics and @egomm