From G.A.Hughes@ed.ac.uk Mon Jul 28 07:25:00 2008 From: Gordon Hughes To: gretl-devel@gretlml.univpm.it Subject: [Gretl-devel] Negation operator Date: Mon, 28 Jul 2008 12:24:51 +0100 Message-ID: <200807281124.m6SBOxFJ020203@f4n3.wfunet.wfu.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6904590478417634847==" --===============6904590478417634847== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Forgive me if this has already been spotted, but I think that something has gone wrong with the negation operator in the latest CVS. I have recompiled gretl this morning [1.7.6rc1, 28/7/08] and found that I had repeated problems with the syntax if !isnull(var). After beating my head against a brick wall I have established that if a = b .. else .. endif works fine, but if a != b .. else .. endif generates an error message reporting that there is an "unmatched if". Gordon --===============6904590478417634847==-- From r.lucchetti@univpm.it Mon Jul 28 08:00:58 2008 From: Riccardo (Jack) Lucchetti To: gretl-devel@gretlml.univpm.it Subject: Re: [Gretl-devel] Negation operator Date: Mon, 28 Jul 2008 14:00:56 +0200 Message-ID: In-Reply-To: 200807281124.m6SBOxFJ020203@f4n3.wfunet.wfu.edu MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5729060420490993956==" --===============5729060420490993956== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, 28 Jul 2008, Gordon Hughes wrote: > Forgive me if this has already been spotted, but I think that something has= =20 > gone wrong with the negation operator in the latest CVS. I have recompiled= =20 > gretl this morning [1.7.6rc1, 28/7/08] and found that I had repeated proble= ms=20 > with the syntax if !isnull(var). > > After beating my head against a brick wall I have established that > > if a =3D b > .. > else > .. > endif > > works fine, but > > if a !=3D b > .. > else > .. > endif > > generates an error message reporting that there is an "unmatched if". Are you sure? The following script runs fine here: Riccardo (Jack) Lucchetti Dipartimento di Economia Universit=C3=A0 Politecnica delle Marche r.lucchetti(a)univpm.it http://www.econ.univpm.it/lucchetti --===============5729060420490993956==--