The example for the forloop package is \newcounter{ct}\forloop{ct}{1}{\value{ct} < 5}{\arabic{ct}}. I need to compare two counters having the first run up to the second. <= doesnt work, neither does \leq or ...+1. I know I can solve it with \not or \or, but those are workarounds. How does it really work?
- Can I and if so how can I do a "real"
<=? - Can I and if so how can I use formulas (like
\value{a}<\value{b}+1)?
\relaxto be sure to end\numexprat the right place (\numexprwill remove it). Otherwise,\numexprmay end up trying to expand some code which is placed after that argument. It turns out that\ifthenelsehas a\relaxat the right place, but I wouldn't rely on that. – Bruno Le Floch May 01 '11 at 06:09