Quote:
Originally Posted by rrr
I apologize for my ignorance, how would I reverse that? I tried
Code:
<if condition="!$show['vbfavorites_fav_lastthreads'] OR !$show['vbfavorites_fav_lastposts'] OR !$show['vbfavorites_fav_lastusers']">
And
<if condition="!$show['vbfavorites_fav_lastthreads'] OR $show['vbfavorites_fav_lastposts'] OR $show['vbfavorites_fav_lastusers']">
But neither of them worked. I also tried putting an else after the statement and it didn't work either.
|
The easiest way to reverse it is to place the whole original condition string into parenthesis and then prepend it with an exclamation sign. Or, replace all instances of OR with AND in the first code you posted.
Either:
Code:
<if condition="!($show['vbfavorites_fav_lastthreads'] OR $show['vbfavorites_fav_lastposts'] OR $show['vbfavorites_fav_lastusers'])">
OR
Code:
<if condition="!$show['vbfavorites_fav_lastthreads'] AND !$show['vbfavorites_fav_lastposts'] AND !$show['vbfavorites_fav_lastusers']">