Loading [MathJax]/extensions/toMathML.js
1
\pgfmathsetmacro{\newVar}{\pgfmathifthenelse{\oldVar==0}{
(\x/2)}{\x}}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
LaTeX

Compile Error

1. Check the configured compile mode in settings

2. Check the LaTeX log file: