Hi,
I'm trying to find a transformer that's able to create a new attribute, check my data for different conditions based on values from multiple different attributes, and subsequently add to the value of the newly created attribute WHILE these conditions hold true. Something like an "overall score attribute".
I put while in caps because with the attribute creator there are only "if" statements. I'm not a programmer, but I know that with if statements, as soon as one holds true, the scripts stops. That is what seems to happen with the attribute creator transformer that I have been using. I could be mistaken of course. Like I said, I'm not a programmer.
However, I don't want that. I want the program to keep checking all conditions and adding to the "score attribute". How do I do that?
So basically something like this:
if/while attribute1 >= 10, add 1 to new overall score attribute
if/while attribute 1 < 10, add 2 to new overall score attribute
if while attribute 2= yes, add 3 to new overall score attribute
if/while attribute 4 is missing, add 4 to new overall score
etc