As dragonlord, I want to test if a TV is empty or not.
I tried yours differents answer without succes.
I work with MODx 0.9.6 and PHx 2.1.2
I have a TV name [*contact*]
I tried theses codes :
[+phx:if=`[*contact*]`:is=``:then=`empty`:else=`not empty`+]
Result : everywhere the string "empty" appears, whereas somes TV docs are not empty !
[*contact:len:gt=`0`:then=`not empty`:else=`empty`*]
Result : once again, the string "empty" appears everywhere, whereas somes TV docs are not empty...
[*contact:is=``:then=`empty`*]
Result : ditto....
I tried this code too :
[*contact:is=`Mr John`:then=`the contact is Mr John`:else=`no contact`*]
I have few docs which have "Mr John" on the TV [*contact*]
Unfortunately, the result is "no contact" everywhere
What’s wrong

!!!!