_______________________________
Printable View
_______________________________
Maybe I don't really understand what you mean, but why don't you just multiply the values together?
The only way the function will return true is if both are true.
return $this->_Bln_QueryExcuted && $this->_Bln_RowsAffected
The result of the && operation is always a boolean. Therefore you just need to return that.
Thanks VisualAd. ;)
Also what is difference between:
return($_X ? $_Y= fale : $_Y= true) V.S. return($_X) ? $_Y= fale : $_Y= true;
Regards.
The first is syntactically valid but looks incorrect (or at best, misleading). The second is invalid.
The ternary conditional operator takes a boolean condition and two values. If the condition evaluates to true, the first value is returned; if not, the second.
The first snippet will evaluate $_X, then assign either false (if $_X is true) or true (if $_X is false) to $_Y, and return that.
Thanks Penagate. Resolved ;).