[Tutor] testing for "None"
Sharriff Aina
NHYTRO@compuserve.com
Thu, 19 Apr 2001 08:22:47 -0400
Hi guys!
## code start ##
templinks =3D [("aa,None,cc,dd")] # from databse
links =3D string.split(templinks[0],",")
for x in links:
if x !=3D None:
counter =3D counter + 1
print "<td>%d. </td>" %(counter)
print "<td>",
print x
print """
</td>
<td><input type=3D"button" onclick=3D"" value=3D"edit"</td>
</tr>
<tr>
"""
else:
pass
## code end ##
can someone tell me why this code fails? I=B4m trying to print values tha=
t
are not " None"