73
edits
Changes
m
{ names: ["say hello"], execute: function() { //etc } }
h1 => h2
For now, just make sure this drop-down is set to "Regular". We'll tell you more about what this means later.
== Hello World: The First Command ==
=== Just a Message: As Simple as it Gets ===
Let's start with the standard programing trope: printing "Hello, World!".
CmdUtils.CreateCommand({
names: ["say hello"],
execute: functionhello_execute() { displayMessage( "Hello, World!");
}
});
<pre>
</pre>
CmdUtils.CreateCommand({
names: ["say hello", "greet"],
execute: functionhello_execute() { displayMessage( _("Hello, World!") );
}
});