ID: 10483 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Feature/Change Request PHP Version: 4.0.4 Assigned To: Comments: thats because 'break' is a keyword, not a function break as a languag construct has no value and may not be used in expressions btw: the same holds true for 'if', 'for', ... you cannot say doSomething("...") OR if(... Previous Comments: --------------------------------------------------------------------------- [2001-04-24 22:17:39] [EMAIL PROTECTED] why is the syntax someFunction() OR anotherFunction(); only possible with a function on the right side of the OR? cause it has to return something? would be nice to be able to to someFunction() OR break; example: $success = FALSE; do { // try block doSomething("foo") OR break; doSomething("bar") OR break; doSomething("hello") OR break; doSomething("world") OR break; $success = TRUE; } while (FALSE); echo ($success) ? 'yes' : 'no'; greetings fab --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10483&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]