Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!sunybcs!rutgers!aramis.rutgers.edu!topaz.rutgers.edu!steiner From: steiner@topaz.rutgers.edu (Dave Steiner) Newsgroups: comp.text,ru.qa.tex Subject: Re: Strange Event in LaTeX Message-ID: Date: 13 Feb 90 04:44:25 GMT References: Organization: Rutgers Univ., New Brunswick, N.J. Lines: 15 To: carllee@math.rutgers.edu Cc: steiner In article carllee@math.rutgers.edu (Carl Lee) writes: > \long\def\text#1{\long\def\textx{#1}} > \long\def\print{\if\empty\textx\else{Text: \textx}\fi} Change your \if to an \ifx. \if will test if the character codes agree and will expand it's arguments so you were really comparing the first two tokens of \textx. \ifx will compare tokens without expansion. ds -- arpa: Steiner@TOPAZ.RUTGERS.EDU uucp: ...{ames, cbosgd, harvard, moss}!rutgers!topaz.rutgers.edu!steiner