Jul 9, 2015, 2:36 PM
Post #4 of 4
Re: [bulrush] Getting first of 3 variable values
[In reply to]
Does this mean if $var1 is set, put it into $val? If not $val1, then get $val2 if defined. If not $val2 then get $val3.
More or less the idea, but not exactly.
This means: if $var1 is set and true, then assign $val to it. In other words, if $var1 is set to 0 or "", it is not true and you'll need to check $val2, and so on if $val2 is set but false.