Hi sfullman,
It's a bit difficult for me to really understand what you're trying to actually do here.
You say -'two things happen, first the var is assigned, and if the assignment is something and not blank, zero, etc., then the var can be used. '
Does the program 'die' if the var is blank, for instance?
Also, it's not necessarily true that shorter code length implies shorter code execution time.
// For example ...
if($a){
$x = $a;
} else {
$x = 1;
}
// ... and ...
if($a) $x = $a; else $x = 1;
// ... and ...
$x = $a? $a: 1;
// ... are all equivalent to the compiler
Although I don't always 'practice what I preach', it's probably easier to use the long form every time! In general, it's gonna be easier to read later.
Hope this helps!
Paul.