Re: [Zope] Compare String to Integer

2009-04-21 Thread Allen Schmidt Sr.

  SELECTED
  /> 


That should do it.
-Allen


Bobby wrote:
> Hi,
>
> I can't compare a string (pid) to an integer (brand_id); what's is wrong with 
> my code below? pid is being passed in the URL as &pid= , brand_id is an 
> integer from a database table. Could someone help me with this so that I 
> could make the if statement comparison work? Thanks.  
>
> 
>SELECTED
>   /> 
> 
>
>
>   
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>   
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Compare String to Integer

2009-04-21 Thread Bobby

Hi,

I can't compare a string (pid) to an integer (brand_id); what's is wrong with 
my code below? pid is being passed in the URL as &pid= , brand_id is an integer 
from a database table. Could someone help me with this so that I could make the 
if statement comparison work? Thanks.  


  SELECTED
  /> 



  
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )