2010-07-31, 19:08
I am wondering how to properly use the 'enable=' option inside the settings.xml.
In my script I would like to disable some toggle options using a bool option.
For a better example:
This is from my settings.xml file. I would like all the settings after the bool to be enabled on a true and disabled on a false.
I looked though a few script/plugins and found this statement: enable="eq(-1,2)" and also ="qt(-1,1)" but I don't understand how use them.
Thanks for any help...
In my script I would like to disable some toggle options using a bool option.
For a better example:
Code:
<setting label="32094" type="bool" id="enablecustom" default="false" />
<setting label="32087" type="labelenum" id="recognized" lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32078" />
<setting label="32088" type="labelenum" id="unrecognized" lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32083" />
<setting label="32089" type="labelenum" id="remote" lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32080" />
<setting label="32090" type="labelenum" id="local" lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32082" />
<setting label="32091" type="labelenum" id="remotelocal" lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32080" />
<setting label="32092" type="labelenum" id="unmatched" lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32084" />
<setting label="32093" type="labelenum" id="localcdart" lvalues="32078|32079|32080|32081|32082|32083|32084|32085|32086" default="32083" />
This is from my settings.xml file. I would like all the settings after the bool to be enabled on a true and disabled on a false.
I looked though a few script/plugins and found this statement: enable="eq(-1,2)" and also ="qt(-1,1)" but I don't understand how use them.
Thanks for any help...