1.序
在latex写代码时,if条件的源代码
2.解决方案
\If {condition1}
\State a=1
\ElsIf {condition2}
\State a=2
\Else
\State a=3
\EndIf
在latex写代码时,if条件的源代码
\If {condition1}
\State a=1
\ElsIf {condition2}
\State a=2
\Else
\State a=3
\EndIf