How Translate This PHP

Victor Subervi victorsubervi at gmail.com
Sun Mar 6 10:11:54 EST 2011


On Sun, Mar 6, 2011 at 10:53 AM, Noah Hall <enalicho at gmail.com> wrote:

> On Sun, Mar 6, 2011 at 2:45 PM, Victor Subervi <victorsubervi at gmail.com>
> wrote:
> > Hi;
> > How do I translate this PHP code?
> >
> > if($ok){
> >     echo "returnValue=1";
> > }else{
> >     echo "returnValue=0";
> > }
>
> From the code provided -
>
> if ok:
>    print 'returnValue=1'
> else:
>    print 'returnValue=0'
>

Ah. I thought I had to "return" something! Thanks,
Beno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110306/b317a9d1/attachment.html>


More information about the Python-list mailing list