On Mon, 28 Jul 2008, Gordon Hughes wrote:
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".
Are you sure? The following script runs fine here:
<script>
nulldata 10
a = 1
b = 2
if a != b
printf "NOT equal!\n"
else
printf "Equal.\n"
endif
</script>
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti