"<>" causes syntax error
Sergei Steshenko
sergstesh at yahoo.com
Fri Mar 14 21:04:40 CDT 2008
Hello All,
I've tried to use "<>" operator:
"
octave:52> if(1 <> 2) printf("not equal\n"); endif
parse error:
syntax error
>>> if(1 <> 2) printf("not equal\n"); endif
^
octave:52>
".
According to http://www.gnu.org/software/octave/doc/interpreter/Comparison-Ops.html#Comparison-Ops
:
"
x <> y
True if x is not equal to y.
".
Other variants work:
"
octave:52> if(1 != 2) printf("not equal\n"); endif
not equal
octave:53> if(1 ~= 2) printf("not equal\n"); endif
not equal
octave:54>
".
'octave' version is 3.0.0.
Thanks,
Sergei.
Applications From Scratch: http://appsfromscratch.berlios.de/
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
More information about the Bug-octave
mailing list