[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Evaluating 'or' statements: bug or feature?
From: |
Andy Sinton |
Subject: |
Evaluating 'or' statements: bug or feature? |
Date: |
Tue, 8 Jul 2008 17:33:19 +0300 |
I've encountered this issue twice when running .m files in Octave
(3.01, windows).
With an 'or' statement such as
if u > v | someFunction(b)
chokes if there is no variable 'b', even though it is true that u > v.
I guess Matlab stops evaluating 'or' statements when it hits the
first true statement and Octave keeps going?
Is there a reason for this bug/feature?
Thanks!
- Evaluating 'or' statements: bug or feature?,
Andy Sinton <=