Integer Option

The integer option permits users to input a numeric value, facilitating the customization and precision of settings or parameters within an application. The integer option is different from the Number option as integer only accepts positive or negative values no decimal values.

Example Inputs

Below are some examples of valid and invalid inputs for the Integer option.

ValidInvalid

1

1.5

2

1/3

-1

√2

Integer Option Config

Each option block comes with a set of options for you to configure. These are the following:

LabelTypeDetails

Name

String

The name for the option. This name determines the ending value for the option variable: {option_optionName}.

Description

String

A description for the option. This will be displayed when the user has the option active / focused while running the command.

Required

Boolean

A true of false Boolean to set the option to required. If required the command executor will need to provide a value for this option.

Preset Choices

Integer

Define a list of pre-set options for the command user to choose from. This will disable the ability for the user to enter custom values and force them to select one of the pre-defined values from a dropdown list.

Last updated