| 1 |
Let's have a look at what we can do |
| 2 |
with if-then-else and side comments\; |
| 3 |
\eIf{if-then-else test}{ |
| 4 |
no comment here\; |
| 5 |
neither in then\; |
| 6 |
}{ |
| 7 |
nor in else\; |
| 8 |
} |
| 9 |
\eIf(\tcc*[f]{then comment}){test}{ |
| 10 |
then with a comment\; |
| 11 |
}(\tcc*[f]{comment in else}) |
| 12 |
{ |
| 13 |
here we are in else\; |
| 14 |
} |
| 15 |
\eIf(\tcc*[f]{then comment}){test}{ |
| 16 |
again a comment in then\; |
| 17 |
}{ |
| 18 |
but not in else\; |
| 19 |
} |
| 20 |
\eIf{if-then-else test}{ |
| 21 |
this time, no comment in then\; |
| 22 |
}(\tcc*[f]{else comment}) |
| 23 |
{ |
| 24 |
but one comment in else\; |
| 25 |
} |
| 26 |
Let's try with other if possibilities\; |
| 27 |
\lIf(\tcc*[h]{lif comment}){test}{text} |
| 28 |
\uIf(\tcc*[f]{uif comment}){test}{ |
| 29 |
then text\; |
| 30 |
} |
| 31 |
\uElseIf(\tcc*[f]{comment}){test}{ |
| 32 |
elseif text\; |
| 33 |
} |
| 34 |
\lElseIf(\tcc*[h]{comment}){test}{text} |
| 35 |
\lElse(\tcc*[f]{comment}){text} |