Called function conditional testing (if) of form variables problem

Leif K-Brooks eurleif at ecritters.biz
Wed Jun 15 23:21:38 EDT 2005


Eduardo Biano wrote:
> def foo(request):
>     ans01 = request.get_form_var("ans01") 
>     if ans01 == 4:
>         ans_1 = 1
>         return ans_1  

ans01 will be a string ("4"), not an int (4).



More information about the Python-list mailing list