ok...this is cool but confused me for awhile. I get it now and it's not hard, but I'm going to share the syntax and a quick explanation for anyone that needs it (probably not gfree or pig, but I can use it as a reference and anyone that nubier than me may get something out of it.
Basically a ternary operation is shorthand for an if-then-else statement. php:
[php]
if($var == true){
$var = false;
}
else{
$var = true;
}
[/php]
that's a standard and very simple if/then/else statement in php. Any c-like language has something similar. the ternary equivalent is
[php]
$var = ($var == true) ? false : true;
[/php]
much, much, much easier to write, and once you're used to it, much easier to read a series of conditionals. Anyway, as a quick description
$var_to_set = (conditional statement) ? value_to_set_var_to_if_true : value_to_set_var_to_if_false;
easy enough, right?
here's a wikipedia entry on the subject
http://en.wikipedia.org/wiki/Ternary_operation