Hi,
I have a constraint in the transformer
X=1 and Y=1 and @False
this evaluates to zero and nothing pass thro the transformer.
What is the use of @False in this expression when it should be @true to evaluate the condition to true and pass values to the output.
Can anyone clarify me wit this ?
Thanks
constraint in transformer
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 132
- Joined: Tue Sep 04, 2007 11:38 am
- Location: NOIDA
Re: constraint in transformer
As meet_deb85 pointed out correctly, @False is just a more 'visible' way of expressing 0 as a boolean.
In your expression you do not compare @False to anything. So the last condition will never become true and as a result the whole expression will always turn out to be false. You will need to specify which condition has to be false to make the expression as a whole true.
In your expression you do not compare @False to anything. So the last condition will never become true and as a result the whole expression will always turn out to be false. You will need to specify which condition has to be false to make the expression as a whole true.
"It is not the lucky ones are grateful.
There are the grateful those are happy." Francis Bacon
There are the grateful those are happy." Francis Bacon
I'm guessing someone added it (as part of their debugging / bottleneck investigation) to shut down that link... and then forgot to remove it later. Or are still investigating. Or that link no longer needs to ever send rows down it and they wanted to preserve the original constraint.India2000 wrote:What is the use of @False in this expression
In my world, there would be an annotation explaining that or something would be written in one of the General property areas that support that same concept - documentation!
Note to OP: moved my answer over from your other copy of this same question to here and deleted the duplicate post. Please do not post the same question in multiple forums! And this one is getting moved to the General forum.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers