Hi all,
I'm trying to condense down a code that I've written, and I'm having some trouble. I've already chopped the thing in half from when I originally coded it (thanks in large majority to the nested OR conditionals as outlined
in this thread), but it still isn't enough - when I put the whole thing into my template, it eats the rest of the page. I guess that means there's too much information..??
Long and short of what I'm trying to do is that when fidAA, fidBB, and fidCC
are equal to a particular input (Novice, Apprentice, Adept, Venerated or Virtuoso), they output career type, as well as what level they are at, as judged by the three skills inputs.
IE.,
Novice Painter, Apprentice Woodworker, Adept Sculptor would output Apprentice Artisan;
Virtuoso Painter, Novice Woodworker, Novice Sculptor would output Novice Artisan;
Adept Painter, Venerated Woodworker, Venerated Sculptor would output Venerated Artisan;
etc and so on
The Etc and so on I think is where the problem comes in - in trying to cover as many bases as possible, it scraps the rest of my page to accommodate for the contingencies.
I've got 7 different blocks of code that look like that - any help whatsoever would be really apprciated.
also, I tried changing the levels to numerical representations (0=None, 1 Novice, etc.), thinking I could use Greater or Equal to/Less than or Equal to input to eliminate some of the coding, but I couldn't get then Less than or Equal to conditional to work.