If you want a more general purpose way of repeating a block of code, you can use
This repeats ⟨code⟩ while the given condition is true. The
\if… part should be one of TeX's conditionals, such
\ifnum, without the terminating
For example, to print the numbers from 1 to 10:
This book is also available as A4 PDF or 12.8cm x 9.6cm PDF or paperback (ISBN 978-1-909440-07-4).