Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!ucbvax!pasteur!ames!lll-lcc!unisoft!hoptoad!fidogate!f555.n125.z1.FIDONET.ORG!Scot.Kamins From: Scot.Kamins@f555.n125.z1.FIDONET.ORG (Scot Kamins) Newsgroups: comp.sys.mac.hypercard Subject: re: if-statement problem(?) Message-ID: <223.234EBED7@fidogate.FIDONET.ORG> Date: 8 Oct 88 17:08:09 GMT Sender: ufgate@fidogate.FIDONET.ORG (newsout1.22) Organization: FidoNet node 1:125/555 - KUMR, San Francisco CA Lines: 15 The solution to your problem is to put the field reference within parentheses: if (field 1 of cd i) contains "RTFM" then Hypertalk gets confused when you give it an expression to evaluate as a field address if that expression is anyplace but at the end of a line. So if the line were something like else put foo into field 1 of cd 1 it would have no problem with it. The solution I suggest will work every time. -- Scot Kamins - via FidoNet node 1:125/406 UUCP: ...!sun!hoptoad!fidogate!555!Scot.Kamins ARPA: Scot.Kamins@f555.n125.z1.FIDONET.ORG