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" /MTCommentsHeaderAlso, try using http://www.movabletype.org/documentation/appendices/tags/setvar.html instead of var