# How do I add multiple macro definition inside an \ifbool compound statement?

What follows is my example doofus.sty:

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{doofus}%
[2014/01/01 v0.01a LaTeX doofus package]%\filedate\space\fileversion\space
\typeout{Package doofus, \csname ver@doofus.sty\endcsname%

\RequirePackage{calc}
\RequirePackage{xkeyval}[2006/11/18]
\usepackage{ifthen}
\usepackage{etoolbox}

\newbool{@epubstate}
\boolfalse{@epubstate}
\DeclareOption{epub}{\booltrue{@epubstate}}
\ProcessOptions%



Now the original doofus.tex with multiple commands:

\documentclass[english]{letter}
\usepackage[T1]{fontenc}
\usepackage{color}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage[]{doofus}
\usepackage{color}
\usepackage{etoolbox}

\makeatother
\begin{document}
This is a test document for the the doofus boolean example;

Which one appears when I type $\doofus \doofustwo$?
\end{document}


This returns the following error:

! LaTeX Error: Command \doofus already defined.
Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...

l.19 ...d{\doofus2}{\textcolor{red}{6\heartsuit}}}
? X

-
@daemondave: Do you really want to write a package? Perhaps you should get the basics first ;-) –  Christian Hupfer Aug 6 at 22:28
Hi. thank you, no I really don't want to do packages first but that's what I need to do... –  daemondave Aug 6 at 23:56
It would still be more effective not to start by trying to create packages. (Quicker, more efficient, better results if you start simpler.) Note that you do not need \makeatletter for \usepackage commands. –  cfr Aug 7 at 1:43