Could I set up a structure for several cases so that I could get a TeX command branch say, behavior as below:
if case A
- if case A1
- elseif case A2
- elseif case A3
elseif case B
- elseif case B1
- elseif case B2
- end if
the case A1~case B2 is given in advance, say, from the ordered collection (maybe its form is
I knew the
ifthen package, but it is too simple (or to complicated?) to use conveniently.
A intuitive explain:
this demand is related to the modal logic and semantics. Think about a given alphabetic chain of n bit (n less than 16), say,
etc. The character
T denoted "True" or constant have value 1, the character
F denoted "False" or constant have value 0, the other character
z, and so on denoted variables whose value between 0 and 1 (not have to equal). After we assigned for the variables, I want to print the result like:
the chain given above has valuables [#1] (@1) times (or print which places has [#1] appeared in), [#2] (@2) times, [#3] (@3) times, ... and their weight sum is ...
the [#1], [#2], [#3], etc. is the
z, respectively; the (@1), (@2), (@3), , etc. mean as former.