importing using for loops
i'm a complete beginner with maxscript, and am struggling to do something that i'm sure should be very simple, though the help files aren't really helping me out.
all i hope to do is have a simple for loop that allows me to import a series of .wrl files, render each one, and output the rendered images as .jpg files. At the moment i'm using the following script as a test with 2 files:
for i = 1 to 2 do
importFile ""Untitled.wrl"+i+".wrl"" #noPrompt
render outputFile: ""rendered"+i+".jpg""
and i get an error about syntax :(
Any help would be much appreciated.