on 03-19-2012 5:39 AM
Hi,
I have used a condition where
If a NE 72 and b NE 73 and c NE 02 then go to one interface or else go to the other interface.
but my requirement is i want my condition to check all a b and c and then decide the interface. But when i checked the trace it's checking a and if its equal to 72 ,, it's not checking b and c values. It's coming out saying invalid inb if condition..
How do i over come this. I want all the threee values to be read?
Thanks
Hello,
If a NE 72 and b NE 73 and c NE 02 then go to one interface or else go to the other interface.
but my requirement is i want my condition to check all a b and c and then decide the interface. But when i checked the trace it's checking a and if its equal to 72 ,, it's not checking b and c values. It's coming out saying invalid inb if condition..
The behavior is correct, since if a is ne to 72, then there is no more reason to evaluate condition b and c since the Boolean operator is AND. It behaves like the statement if(a!=72 & a!=73 & a!=02) instead of (a!=72 && a!=73 && a!=02).
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How about inverting the logic? If a = 72 and b = 73 and c = 02 then interface B, else interface A? The outcome is the same, and there is no additional workarounds effort
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Prabhas
Boolean Rules follow while using AND. If first condition is not successful, it will not check the rest. While using OR, even if first condition is not successful, it will check the rest to find at least one true value.
Try something like this: I am not sure whether in this also all values would be read.
NOT((a E 72) OR (b E 73)) OR (c E 02))
Regards
Monika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
are you adding "AND" blocks or "OR" ? there are two types - "and" and "or" and you need to add "AND" so that 3 conditions are checked
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.