21 Apr
2009
21 Apr
'09
5:04 p.m.
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. <dtml-in "getTable()"> <OPTION VALUE="<dtml-var brand_id>" <dtml-if expr="brand_id==pid">SELECTED </dtml-if> /> <dtml-var brand_name> </dtml-in getTable>