that will never evaluate to true, the quoted bits are strings that dont appear in string your comparing it to.
if
code:
sectionName = "gentilejews";
numberVar = 10;
then your example
code:
trace(sectionName+"Section_"+numberVar+"Var");
would output
code:
gentilejewsSection_10Var
you could try using a for..in loop, something like this
code:
for (everyobject in _root) {
if (typeof (_root[everyobject]) == "object") {
checkVariable(_root[everyobject]);
}
}
function checkVariable(variablevalues) {
if (variablevalues== "quicklinks") {
_root.gotoAndPlay("MAIN");
}
}
that's untested and probably butchered horribly but might get you started; there's a good help section on loops in the prog and on livedocs.