Click or drag to resize
RhinoGetGetBool Method
Easy to use bool getter.

Namespace: Rhino.Input
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public static Result GetBool(
	string prompt,
	bool acceptNothing,
	string offPrompt,
	string onPrompt,
	ref bool boolValue
)

Parameters

prompt
Type: SystemString
Command prompt.
acceptNothing
Type: SystemBoolean
If true, the user can press enter.
offPrompt
Type: SystemString
The 'false/off' message.
onPrompt
Type: SystemString
The 'true/on' message.
boolValue
Type: SystemBoolean
Default bool value set to this and returned here.

Return Value

Type: Result
The getter result based on user choice.

Commands.Result.Success - got value.

Commands.Result.Nothing - user pressed enter.

Commands.Result.Cancel - user cancelled value getting.

See Also