cmd_is_checked()

Checks if a command is currently in a checked (active) state.

Syntax

cmd_is_checked(command_id)

Parameters

Parameter Type Description
command_id Number The ID of the command to check.

Return Value

Examples

Check if a command with ID 4 is active

cmd_is_checked(4);  // returns 1 if checked, 0 if unchecked

Check an invalid command ID

cmd_is_checked(9999);  // returns 0

See also

cmd_list
cmd_count

cmd_get_id
cmd_get_name
cmd_get_displayname

cmd_is_enabled
cmd_is_checked

cmd_exec