Quote:
Originally Posted by Chandler
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.str: this.strlist) { ... }
When not using a prefix in these kind of loops, a TEMP. variable is set.
PHP Code:
for (str: this.strlist) { ... }