|
From: Petr M. <mi...@ph...> - 2006-08-14 05:21:31
|
>> This is the correct patch! With this patch, the exists(...) works as
>> expected.
>
> I disagree.
>
> Before
> -------
> gnuplot> foo = 8
> gnuplot> if (!exists(foo)) print "Hi"
This is wrong! You must write exists("foo"). The argument of exists() must
always be a string:
gnuplot> help exists
`exists("X")` returns 1 if a variable named X has been defined, otherwise
it returns 0.
It was defined() who used to accept non-string variable.
---
PM
|