A piece of script in the CRM example goes like this:
var period = plugins.dialogs.showSelectDialog('Choose period','REVENUE REPORT - CUSTOMERS\n\nSelect a Time period.','Month','Quarter','Year')
if(period=="")
{return;}
if(period=="Month")
etc.
Q: what is the sense of the third line: you can only choose between 3
values and there is not an "empty" value between them.