3dcheapskate opened this issue on Sep 26, 2020 ยท 7 posts
adp001 posted Sun, 27 September 2020 at 1:31 AM
Returning None is the correct Python way if nothing is selected (canceled). Returning nothing is different than returning an empty string.
result = poser.DialogSimple.AskMenu(...)
if result:
do_something()
else:
forget_it()
In Python None is assumed as False.
for item in emptylist or listwithcontent:
print(item_from_listwithcontent)