Else/If Help
Thanks!
Show message
Join up (it's free!) whether you're just starting out or you're crazy advanced. Get tips from people who know what they're talking about, without being treated like the playground smelly kid. Because seriously, your school classes didn't teach you anything you wanted to know.

Posted 11 August 2012 - 09:31 AM (#1)
Posted 11 August 2012 - 09:45 AM (#3)
Posted 11 August 2012 - 10:10 AM (#4)
raw_inputgives back a string, so you're comparing a string to an integer. That'll always return false.
"9" == 9
if yn == "9":
Posted 11 August 2012 - 10:23 AM (#5)
Sephern, on 11 August 2012 - 10:10 AM, said:
raw_inputgives back a string, so you're comparing a string to an integer. That'll always return false.
"9" == 9
if yn == "9":
Posted 11 August 2012 - 10:41 AM (#6)
NeilHanlon, on 11 August 2012 - 10:23 AM, said:
Posted 11 August 2012 - 01:30 PM (#8)
callumacrae, on 11 August 2012 - 10:54 AM, said:
===appear in even the most established, commercially-backed PHP projects, for instance.
Posted 11 August 2012 - 01:42 PM (#9)
===is equal to
&one == &twoin terms of C right? In ruby you can compare object ids instead, what would be the PHP alt? Or better yet, Python alt.
Posted 11 August 2012 - 02:03 PM (#10)
TheEmpty, on 11 August 2012 - 01:42 PM, said:
===is equal to
&one == &twoin terms of C right? In ruby you can compare object ids instead, what would be the PHP alt? Or better yet, Python alt.
Posted 11 August 2012 - 03:27 PM (#11)
Quote
Posted 11 August 2012 - 11:06 PM (#12)
Lemon, on 11 August 2012 - 02:03 PM, said:
Posted 12 August 2012 - 03:10 PM (#14)
TheMaster, on 11 August 2012 - 11:06 PM, said: