Incidentally your post probably caused you more work than to have tested it yourself. So much for your laziness even being optimal laziness. *pfffft*. I thought making stupid posts was covered in the newbie guide!?!
Rob. On Tue, 2003-10-07 at 13:06, Robert Cummings wrote: > On Tue, 2003-10-07 at 13:02, Pat Carmody wrote: > > > > > > Calling the following retor_test() function causes a "Parse error: parse > > error, unexpected T_RETURN" message when the script is run: > > > > function istrue() { > > return true; > > } > > function retor_test() { > > istrue() or return( "False" ); > > return "True"; > > } > > > > The problem is with the "or return" part. Any ideas why? I realize that > > I could use an if statement instead, but I'm a lazy, lazy man and I don't > > want to. > > Your laziness is causing you problems. Please check out ALL of the > documenation located at http://www.php.net since this is covered under > basic syntax and we don't cater to lazy people (at the very least *I* > don't cater to lazy people). > > Cheers, > Rob. > -- > .------------------------------------------------------------. > | InterJinn Application Framework - http://www.interjinn.com | > :------------------------------------------------------------: > | An application and templating framework for PHP. Boasting | > | a powerful, scalable system for accessing system services | > | such as forms, properties, sessions, and caches. InterJinn | > | also provides an extremely flexible architecture for | > | creating re-usable components quickly and easily. | > `------------------------------------------------------------' -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php