[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BREAK statement and octave 5
From: |
Alice |
Subject: |
BREAK statement and octave 5 |
Date: |
Tue, 5 Mar 2019 17:24:55 +0100 |
If I run the following code in Octave 4.x (on Mac) it works while in Octave 5.x
it doesn’t.
I know that the break statement should work only for loops but until ref 5.0 it
worked also for the if statements.
I’m not able to find this change in the release notes. Is there anyone who
knows something more?
THNX
Marco
%% Input
A=input('A=? ') %1e-8;
B=input('B=?') %2;
C=input('C=?') %1e-8;
%% A==0
if A==0
'Error: 1'
break
end
%% Delta
Delta=B^2-4*A*C;
- BREAK statement and octave 5,
Alice <=