I'm trying to create a series of macros that will automatically generate a quiz for a student based upon their past performance on similar quizzes. I've defined a command \grade{student name}{concept number} that gives out a student's grade on the given concept without problem. For instance \grade{Taybra}{3} prints as "2". I then defined a command to give the corresponding quiz thusly:
Code: Select all
\newcommand{\autoquiz}[2]{
\ifthenelse{\grade{#1}{#2} < 4}{easy quiz}{hard quiz}\
}
Code: Select all
\autoquiz{Taybra}{3}
I assume this has something to do with the internals of the ifthen package, but I don't know how to fix it.
Here's my preamble, if it makes a difference.
Code: Select all
\documentclass[12pt]{article}
\usepackage{fullpage}
\usepackage{ifthen}
\pagestyle{empty}
\begin{document}
Thanks!