You might try something like
switch(slct[a,b])
{
case "1_5":P{some stuff}
case "1_6":P{some stuff}
case "1_7":P{some stuff}
case "2_5":P{some stuff}
case "3_5":P{some stuff}
}
where you have set up the array slct to have the values required (also include a default if necessary)
You can increment or set your indexes and get a testable string from the array.
|