On Mon, Aug 07, 2006 at 06:07:24PM -0000, hotani wrote:
> I'm doing a comparison of a session variable and an id for a 'selected'
> tag in a drop-down in a template. If I output both vars, they will both
> be "1" yet 'ifequal' is still returning false. Has water stopped being
> wet?

Is one a string and the other an integer?

Python 2.4.2 (#1, Feb 12 2006, 03:45:41) 
[GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 1
>>> b = '1'
>>> a
1
>>> b
'1'
>>> a == b
False
>>> a != b
True


Nate

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to