<li class="menuItem [[+idx:lte=`3`:then=`highlight`]]"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></li>
<li class="menuItem [[+idx:lte=`3`:then=`highlight`:else=``]]"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></li>
<li class="menuItem [[+idx:gt=`3`:then=`highlight` ]]"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></li>
This question has been answered by BobRay. See the first response.
[[!+idx:gt=`3`:then=`highlight` ]]
[[!Hilight? &docId=`[[+idx]]`]]
<?php return ($id <= 3)? 'highlight' : '';
I imagine that if there's no else, MODX has no way of knowing what it should do if the condition is not met, so I suspect that the result is unreliable.Yes, but the MODX behaviour should be consistent – or, at least, "do nothing" instead of "jump to a silly conclusion". ;-)
[[+idx:gte=`4`:then=`lowlight`]]
[[+idx:lte=`3`:then=`highlight`]]

If you read the docs here: http://rtfm.modx.com/display/revolution20/Input+and+Output+Filters+(Output+Modifiers)#InputandOutputFilters%28OutputModifiers%29-ConditionaloutputmodifiersThanks, Bob! Glad to hear that it is my fault and that MODX is working fine! I might have not understood the description in the way, that else has "allways" to be used – caused by a lack of language skills, I guess. ;-)
The descriptions for both those modifiers say: Used with "then" and "else". There's no indication that the "else" is optional.
[[+numbooks:lt=`1`:hide]]
[[+numbooks:lt=`1`:hide]]