highend wrote: ↑19 Dec 2020 16:48
Seems to be fixed now.
Not for old scripts using SC break. Still trying to figure out how to fix. In this case the break is on an else, which is within a while which is within 2 nested if's. Good grief Charlie Brown! The script was uploaded here
viewtopic.php?f=7&t=21942 . Though that one is not my latest, it is broken too.
Code: Select all
if !($newfilter) { // the filter is "0". Filter off ($idx is "1")
filter "",6;}
else {
if (($filtertype == "Age") && ($trigger == "1") && ($mod != "2")) {
while($idx > 1) {
$files = quicksearch("ageM: <= $newfilter d /nf",,"|");
if (gettoken($files, "count", "|") < 1) {
$idx = ($idx == $stateCount ? 1 : $idx+1);
$newState = GetToken($states, $idx, <crlf>);
$origname .= $name . " or ";
$name = GetToken($newState, 1, '|');
$newfilter = GetToken($newState, 2, '|');
}
else {break;}
}
}
elseif (($filtertype == "Age") && ($trigger == "2") && ($mod != "2")) {
while($idx > 1) {
$files = quicksearch("ageM: <= $newfilter d /nf",,"|");
if (gettoken($files, "count", "|") < 1) {
$idx = ($idx == $stateCount ? 1 : $idx+1);// go foward instead of back if $files="" on quicksearch.
if($files == "") {
$idx = "1"; //since the next age filter has no files reverse back to "Filter off"
}
$origname .= $name . " or ";
$newState = GetToken($states, $idx, <crlf>);
$name = GetToken($newState, 1, '|');
$newfilter = GetToken($newState, 2, '|');
}
else {break;}
}
}