Re: How Translate This PHP

2011-03-09 Thread Victor Subervi
On Sun, Mar 6, 2011 at 12:00 PM, Noah Hall wrote: > On Sun, Mar 6, 2011 at 3:11 PM, Victor Subervi > wrote: > > Ah. I thought I had to "return" something! > > Well, based on what you asked, you would've, but based on the code, > all it was doing is printing "returnValue - value" > > Of course, a

Re: How Translate This PHP

2011-03-06 Thread Noah Hall
On Sun, Mar 6, 2011 at 3:11 PM, Victor Subervi wrote: > Ah. I thought I had to "return" something! Well, based on what you asked, you would've, but based on the code, all it was doing is printing "returnValue - value" Of course, a better way of doing it would be to use formatting - For example,

Re: How Translate This PHP

2011-03-06 Thread Littlefield, Tyler
>How do I translate this PHP code? >if($ok){ >echo "returnValue=1"; >}else{ >echo "returnValue=0"; >} print("return value = "+str(ok)); -- http://mail.python.org/mailman/listinfo/python-list

Re: How Translate This PHP

2011-03-06 Thread Victor Subervi
On Sun, Mar 6, 2011 at 10:53 AM, Noah Hall wrote: > On Sun, Mar 6, 2011 at 2:45 PM, Victor Subervi > wrote: > > Hi; > > How do I translate this PHP code? > > > > if($ok){ > > echo "returnValue=1"; > > }else{ > > echo "returnValue=0"; > > } > > From the code provided - > > if ok: >pri

Re: How Translate This PHP

2011-03-06 Thread Noah Hall
On Sun, Mar 6, 2011 at 2:45 PM, Victor Subervi 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' -- http://mail.python.org/