I try to set a boolean in a if-statement but Latex seems to ignore my input.
\documentclass[a4paper,11pt]{article} \usepackage{ifthen} %booleandeclaration \newboolean{istest} \setboolean{istest}{false} %Set boolean in if \newcommand{\activate}[1]{ \ifnum#1>0{\setboolean{istest}{true}}\fi } %test boolean of true or false \newcommand{\test}{\ifthenelse{\boolean{istest}}{TRUE}{FALSE}}% \activate{17} \begin{document} \test \end{document}
I thought the
\activate{17}
statement would set the boolean "istest" to true, but it dosen't, \test
returns FALSE.Any idea why the \setboolean statement not works correctly in the \ifnum statement?
Ziggo