(2024-02-14, 19:49)Hitcher Wrote: Set up a variable using a string compare to the System.BuildVersion
to get the version name.
xml:
<variable name="BuildVersionName">
<value condition="String.StartsWith(System.BuildVersion,21.)">Omega</value>
<value condition="String.StartsWith(System.BuildVersion,20.)">Nexus</value>
...
</variable>
The syntax makes sense to me, but I'm unclear on the execution because I looking back, I think I was unclear in asking how I was trying to execute my intent on how to use it. Here is was what the code is I'm trying adjust for:
Code:
<control type="grouplist">
<top>17</top>
<right>25</right>
<width>607</width>
<height>600</height>
<usecontrolcoords>true</usecontrolcoords>
<control type="label">
<label>$LOCALIZE[13000]</label>
<font>Font26_Bold_Caps</font>
<textcolor>$VAR[PanelHighlightColorVar]</textcolor>
<include>VideoOSDProcessInfo</include>
</control>
<control type="label">
<label>[COLOR $VAR[PanelTextColorVar]]$LOCALIZE[19114] [/COLOR]$INFO[System.XXXXXXX[NEXUS]XXXXXXXXX] $INFO[System.BuildVersionShort] </label>
<include>VideoOSDProcessInfo</include>
</control>
</control>
I've truncated this way down to a single line of example where the statement is nearly complete, the XXXXX is what missing. Would the line:
Code:
<label>[COLOR $VAR[PanelTextColorVar]]$LOCALIZE[19114] [/COLOR]$INFO[System.XXXXXXX[NEXUS]XXXXXXXXX] $INFO[System.BuildVersionShort] </label>
be iterated multiple times until the version value match is met (which would grow over time)?
I don't think I asked the question correctly the first time, hopefully this is more concise.
Thanks for the fast response.
Chris