Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.