Are you talking about adding it to your add on? If so, when you create your option in the admin panel, you must set Edit Format to On/Off Check Box and Data Type to Boolean. And for Default Value, enter 1 if you want your option to run when excecuted, otherwise 0 or leave it blank. You must also remember that to be able to add options, the developer mode must be enabled.