ListBox.IsItemSelected

boolean ListBox.IsItemSelected (

string ObjectName,

number Index )

Description

Returns true if a specific listbox item is selected, or false if it's not selected.

Parameters

ObjectName

(string) The name of the listbox object.

Index

(number) The item index whose selection state you want.

Returns

(boolean) True if the listbox object item is selected, false if it is not. If an error occurs, false is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions