Hello World
All the scripts in this article are distributed together with the lua script plugin. You have to check the example scripts box in the installer to get them installed.
Hint: Put all scripts in the samurize/scripts directory! That way, they are easy to select in the options dialog.
Note that lua is case sensitive. So the samurize & ampi functions do only work exactly as they are printed, for example.
In every language the famous "Hello World" program is the most simple one. It just prints those few letters.
No initialization script needed, leave that field empty. No libraries needed.
Every line beginning with "--" is a comment. You can use it to make the code more readable - for users and for yourself!
Hint: Put all scripts in the samurize/scripts directory! That way, they are easy to select in the options dialog.
Note that lua is case sensitive. So the samurize & ampi functions do only work exactly as they are printed, for example.
In every language the famous "Hello World" program is the most simple one. It just prints those few letters.
-- hello world
return "hello world"
No initialization script needed, leave that field empty. No libraries needed.
Every line beginning with "--" is a comment. You can use it to make the code more readable - for users and for yourself!
Subtitles
