#Help with Aggregating
1 messages · Page 1 of 1 (latest)
It is doing exactly what you asked. How do you intend for the third Transform not to execute?
The value of ~ is 0, so the third Transform sets the value to ' '. It doesn't matter what happened before.
The else part on all three Transforms should be '$'
The single quotes are intended.
So each Transform either changes the value or passes the previous value to the next Transform.
Ok thanks. So conceptually I am doing this wrong. I am wanting to bring three boolean values in as Config Refs that represent three modes . Only one of those modes will ever be 1 or they will all be 0. I want to send a three character string as the output based on which is 1 or a string of three spaces if they are all 0. This string is then brought in to a display output as a config ref to display as a three character field. It's basically a nested if else I'm looking to do but I'm just not too familiar with the structure of the MF interface yet.
Like I mentioned, change all Transform else part to '$'
Won't that just send a string to the next transform. I'm completely confused. To add to the confusion, you answered someone else with the same scenario with a solution that's EXACTLY what I originally did ironically and he was also confused. It's about 5 lines to do this in C as a nested if else. I really appreciate the help. #1251298987152249013 message
You can make nested if else within one transform but gets complicated. Cascading is simple but needs to consider allowing the selected value to pass through.
I guess my solution then had the same problem.
What do you mean by "just passing a string to the next Transform"?
'$' literally gets substituted by the value of $ in single quotes
The space should maybe be in the else part of the first Transform.
I was just not understanding, but I think I do now.
So this should work, right? if(A=1,'ALT',if(B=1,'VS ',if(C=1,'GS ',' ')))