Bool value in settings - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Bool value in settings (/showthread.php?tid=331204) |
Bool value in settings - OptimazesGrow - 2018-04-23 Hi guys , Is there a way for me to get a value of a bool value in settings of a addon? Like Something = getSettings(boolhere) Thanks RE: BOOL VALUE IN SETTINGS - User 325245 - 2018-04-23 you have to convert it from string to bool, i.e. bSetting = bool(strtobool(str(__addon__.getSetting('mysetting').title()))) |