odd_command_name

Syntax

odd_command_name(command)

Parameters

Name Description
command The Command to get the name of.

Returns

string: The name of the given command.

Description

This function gets the name of the given Command. This should be used instead of directly accessing it.

Example

// ...

var command = odd_create_command("add", args);

show_debug_message(odd_command_name(command));

// ...

This would print “add” to the console.