The issue is that the search string used by IfMatch to check the value of the measure may NOT be empty. It must exist. If not, the entire IfMatch will fail and will not execute at all. Think of it as the string equivalent of "divide by zero". It is not allowed.Thanks.
Ok, so, I do have a minor issue, that I can leave as is, but would be nice to understand what is going on with it.
Here's a typical Parent:Now if the Variables are empty, like this:Code:
[Variables]App1=MameUIApp1Debug=App1Current=0.272.0App1RegEx=<td align="left"><a href="(.*)"><img src="dl.png" border=0> MAMEUI64 (.*) .*</a></td>App1Site=https://messui.1emulation.com/App1Download=#App1Site#[mApp1Download][mApp1Site]Measure=WebParserURL=#App1Site#RegExp=(?siU)#App1RegEx#UpdateRate=3600DynamicVariables=1Debug=#App1Debug#IfMatch=[mApp1Current:EscapeRegExp]IfMatchAction=[!SetOption App1Latest Fill1 "FillColor #Green#"]IfNotMatchAction=[!SetOption App1Latest Fill1 "FillColor #Red#"]IfMatch2=^$IfMatchAction2=[!HideMeterGroup App1]IfNotMatchAction2=[!ShowMeterGroup App1]FinishAction=[!EnableMeasureGroup mApp1][!Delay 200][!DisableMeasureGroup mApp1]
I have to specify an "X", or any character, for the App1Current variable in order for IfMatch2 to work. Otherwise it doesn't hide the download button and associated indicator. Is the order of the IfMatch's correct?Code:
[Variables]App1=App1Debug=App1Current=XApp1RegEx=App1Site=App1Download=
It would be helpful to know what exactly the IfMatch is working on, is it URL=#App1Site# or RegExp=(?siU)#App1RegEx#
EDIT: I just commented out the FinishActions on all parents, leaving the children disabled, had no effect on the skin! So that's good to know!
This is true of RegExpSubstitute as well...
RegExpSubtitute=1
Substitute="":"99"
That will blow up and fail.
It's why we use Substitute="^$":"99" instead.
Statistics: Posted by jsmorley — Today, 2:02 pm