20,741
edits
m (→Hello World) |
m (→Hello World) |
||
Line 174: | Line 174: | ||
* Built-in command: print hello world (name) to the console | * Built-in command: print hello world (name) to the console | ||
* | * | ||
* name (optional): the file name to load the panel from | * name (optional): the file name to load the panel from | ||
* | * | ||
*/ | */ | ||
Line 182: | Line 182: | ||
string name = "anonymous"; // default | string name = "anonymous"; // default | ||
if (!arg->hasValue("name")) { | if (!arg->hasValue("name")) { | ||
guiErrorMessage("Cannot say hello | guiErrorMessage("Cannot say hello without name!: "); | ||
return false; | return false; | ||
} | } |