IE if ( A ) { B } is the same as A && B. Likewise if ( !A ) { B } is the same as A || B.
So to code if !B then A else if (E and F) then (C and D) you would say
( ! B ) ? A : ( ( E && F ) && ( C && D ) )
In reply to Re^3: Complex conditional statements
by monarch
in thread Complex conditional statements
by bofh_of_oz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |