Code: Select all
\begin{array}{@{\llbracket}l@{,}l@{\models}l@{\rrbracket~=~}l}
M & s & true & true \\
...
\end{array}
Code: Select all
\newcommand{\ifother}[2]{{{{\ifx\myother\undefined{#2}\else{#1}\fi}}}}
\newcommand{\startother}{\def\myother{}}
\makeatletter
\newcommand{\finishother}{\let\myother\@undefined}
\makeatother
Code: Select all
\begin{array}{@{\ifother{\llbracket}{\boldsymbol{\llbracket}}}l@{,}...}
... \\
\startother ... \\
... \\
\finishother ... \\
... \\
\end{array}
As a concrete example
Code: Select all
\begin{array}{@{\ifother{b}{a}~}l}
1 \startother\\
2 \\
3 \endother \\
4 \\
\end{array}
but i would like it to output:a 1
a 2
a 3
a 4
Ive done some experiments with noexpand/expandafter/aftergroup but could not find the right combination. Could anyone help?a 1
b 2
b 3
a 4