General
: K-Meleon Forum
General discussion about K-Meleon.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JohnHell] Let me say something, because I think this could be confusing if someone doesn't read correctly. I hope you aren't using the same code as I posted before, I mean, using the same conditional three times. Let me post an expanded code: $a = [u]$b != $c[/u] ? $d : [u]$b != $c[/u] ? $d : [u]$b != $c[/u] ? $d : $x; THE ABOVE IS WRONG TO USE AS CONDITIONAL, JUST WAS AN EXAMPLE OF WHAT I MEAN WITH MORE THAN ONE NEGATION USE This is only to put values to the code, nothing else. $a = 0; $b = 1; $c = 2; $d = 3; $x = 4; $y = 5; $a = [u]$b != $c[/u] ? $y : [u]$b != $d[/u] ? $y : [u]$c != $d[/u] ? $y : $x; THE ABOVE IS CORRECT NOW First condition: $a should take the value of $y if $b is not equal to $c, correct. The result is that $a now is 5. Second condition: $a should take the value of $y if $b is not equal to $d, correct. The result is that $a now is 5. Third condition: $a should take the value of $y if $c is not equal to $d, correct. The result is that $a now is 5. If not of the above: $a now is 4 Ok, what I came here with, is that no one of the three conditions are used and $a ever takes the value of $y, even if in the first condition, $b is equal to $c, in the second, $b is equal to $d and in the third, $c is equal to $d, never is taken $x for a value for $a. But, if instead 3 negative conditions, only one of the conditions is negative, all works. So, what I was telling is that 3 negative conditions one "behind" another, doesn't work.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development