View Single Post
  #1  
Old 06-22-2006, 11:26 AM
JustBreathe JustBreathe is offline
Registered User
Join Date: Jun 2006
Posts: 59
JustBreathe is on a distinguished road
Assignment in IF Clause

PHP Code:
if ( temp.rid true )
  {
  
// Stuff
  

Does NOT work.

PHP Code:
temp.rid true;
if ( 
temp.rid )
  {
  
// Stuff
  

DOES.

Wrapping assignment in brackets doesn't fix this problem.


Practical Usage:

PHP Code:
function onCreated()
  {
  while ( 
temp.item this.(@ "items"temp.count++ ) )
    {
    
// Stuff
    
}
  } 
Reply With Quote