io.input.boolean
Requests a boolean value.
Usage
- TypeScript
- JavaScript
- Python
const shouldSubscribe = await io.input.boolean("Subscribe to our newsletter?");
const shouldSubscribe = await io.input.boolean("Subscribe to our newsletter?");
should_subscribe = await io.input.boolean("Subscribe to our newsletter?")
interval.com
Props
- TypeScript
- JavaScript
- Python
defaultValue
Required
Default value for the input.
disabled
Optional
boolean
Whether the input is disabled, preventing edits to the `defaultValue`.
helpText
Optional
string
Optional label providing additional context. Supports inline markdown elements like bold, italics, and links.
Returns
boolean
defaultValue
Required
Default value for the input.
disabled
Optional
boolean
Whether the input is disabled, preventing edits to the `defaultValue`.
helpText
Optional
string
Optional label providing additional context. Supports inline markdown elements like bold, italics, and links.
Returns
boolean
default_value
Optional
bool
Default value for the input.
disabled
Optional
bool
Whether the input is disabled, preventing edits to the default value.
help_text
Optional
str
Secondary label for providing additional context.
Returns
bool
Did this section clearly explain what you wanted to learn?