Could anyone help me understand why this simple function does not work in MT 4.2?
The output form this little exercise ALWAYS prints the number 3, regardless of whether is equal to 1 or 10.
Sure would appreciate any insight into why this simple function is not working.
Reported on Movable Type 4.2

Could you post the Perl code or template markup?
Mike T. Thanks,
I bolded the relevant text below:
here is my Comments template:
Comments
And here is the Comment Detail Template that is supposed to output the variable "expand" but always outputs the default "3" instead of the new SetVar value.
Sorry,, I don't know how to post the template html. It truncated in the previous comment. I will try again, removing the < and > 's .
All the template Xhtml works fine, except this one setvar function.
mt:Var name="expand" value="3" mt:If tag="MTEntryCommentCount" gt"5" mt:Var name="expand" value="1" /mt:If mt:If tag="MTEntryCommentCount" lt"6" mt:Var name="expand" value="2" /mt:If MTCommentsHeader h2 class="comments-header" $MTEntryCommentCount$ Comments /h2 mt:Var name="expand" div class="comments-content" /MTCommentsHeaderDrop the "MT" when testing testing against template tags. You should be using "EntryCommentCount".
Drop the "MT" when testing testing against template tags. You should be using "EntryCommentCount".
Also, try using http://www.movabletype.org/documentation/appendices/tags/setvar.html instead of var
Thanks, Mike T. Made those changes, but, it still doesn't work.
It continues to print 3, regardless of the number contained in MTEntryCommentCount, 10 or 1.
Thanks Su, and Mike. Turns out, I was missing the equals sign between the gt and value or lt and value. ( eg gt="1" )