Search found 2 matches

by ziggo1879
Mon Feb 04, 2013 7:19 pm
Forum: General
Topic: \setboolean in \if statement
Replies: 2
Views: 22942

\setboolean in \if statement

and it should work as expected.
Now it works fine :-).
by ziggo1879
Sun Feb 03, 2013 11:53 pm
Forum: General
Topic: \setboolean in \if statement
Replies: 2
Views: 22942

\setboolean in \if statement

Hey Guys,

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 ...