View Single Post
  #2  
Old 05-11-2007, 06:47 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Chandler View Post
Why would you want to keep the VARIABLE data?
Here:
HTML Code:
function onCreated()
{
  temp.myList = {"hey", "hi", "lol"};
  for (currentItem: temp.myList)
    echo(currentItem);
  echo(currentItem);
  scheduleevent(3, "Repeat", "");
}
function onRepeat()
{
  echo(currentItem);
}
using temp. prefix's won't STORE the VARIABLE data.
You obviously don't know how those kind of loops work.

temp.str is set (temporary variable)
PHP Code:
for (temp.strthis.strlist) { ... } 
When not using a prefix in these kind of loops, a TEMP. variable is set.
PHP Code:
for (strthis.strlist) { ... } 
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote