help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange behaviour of IF


From: Ben Sapp
Subject: Re: Strange behaviour of IF
Date: Fri, 21 Apr 2000 10:49:56 -0600

SZABO Sandor wrote:
> >> if A!=B
> turn="not"
> endif
> >> turn
> turn = yes
> >>

You can do what you want like this:

if any(A!=B)
turn = "not";
endif

You might also find the all command useful.  

-- 
Ben Sapp                         Los Alamos National Laboratory
email: <mailto:address@hidden>   Phone: (505)667-3277
Fax:   (505)665-7920             URL:   http://www.neutrino.lanl.gov/
--



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]