Code: Select all
count = 0;
while (true) do
if count > 10 then
loadPaths(wp_file);
end;
print(count);
count++;
end;
when count is greater than 10 wp_file should be loaded and executed
whats happening
MM shows that wp_file has been loaded, but than executes the print statement and continues the loop, showing again and again that the new wp_file has been loaded and prints out "count" which than is greater than 10.
I tried this
Code: Select all
count = 0;
while (true) do
if count > 10 then
loadPaths(wp_file);
error("Stop",0);
end;
print(count);
count++;
end;
I expected the wp_file to be loaded and never reach the error statement.
I had this prob several time and thought it was a mistake in my coding ... maybe you can point it out to me.
How can i get MM to stop all things from the actual WP file when loading a new one.