I really feel a noob asking this, but:
Looking at some of the example scripts, they usually begin with the line:
include("scripts/EAction.js")
If I type this into the Script Shell and press <enter>, the shell replies with:
[color=#0000FF]ecma>[/color] include("scripts/EAction.js")
undefined
If it won't accept even the first line I obviously am a real beginner. Help!
Beginning Scripting [Solved]
Moderators: andrew, Husky, J-J
Beginning Scripting [Solved]
Last edited by jby601 on Fri May 22, 2020 8:50 pm, edited 1 time in total.
Re: Beginning Scripting
Odd, I know.
Try the scripts of this topic in the Shell.
viewtopic.php?f=2&t=6802&p=26202#p26201
They work, give the same 'undefined' here and there and even an error because of the wrong slash in the include.
I supose 'undefined' is the reply on the line entry.
Regards,
CVH
Try the scripts of this topic in the Shell.
viewtopic.php?f=2&t=6802&p=26202#p26201
They work, give the same 'undefined' here and there and even an error because of the wrong slash in the include.
I supose 'undefined' is the reply on the line entry.
Regards,
CVH
Re: Beginning Scripting
The function include does not return anything. So that result of calling include is undefined. It's a JavaScript oddity but doesn't mean it didn't work.
Re: Beginning Scripting [Solved]
Thank you, Andrew