Skip to content
Snippets Groups Projects
Commit 467c3663 authored by hluk's avatar hluk
Browse files

Docs: Fix example for checking selected index from dialog()

parent 0e88f198
Branches master
No related tags found
No related merge requests found
......@@ -1105,7 +1105,7 @@ unlike in GUI, where row numbers start from 1 by default.
var items = ['a', 'b', 'c']
var selected_index = dialog('.list:Select', items)
if (selected_index)
if (selected_index !== undefined)
print('Selected item: ' + items[selected_index])
Icon for custom dialog can be set from icon font, file path or theme.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment