[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63935] error during evaluation of conditional
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if |
Date: |
Fri, 17 Mar 2023 10:23:48 -0400 (EDT) |
Update of bug #63935 (project octave):
Status: None => Confirmed
Operating System: GNU/Linux => Any
_______________________________________________________
Follow-up Comment #2:
seeing the same on windows. updating platform and marking as confirmed.
>> if (true & true), "true",else,"false",end
ans = true
>> if ([true,true] & [true,true]), "true",else,"false",end
error: if: undefined value used in conditional expression
>> if ([true,true]' & [true,true]'), "true",else,"false",end
error: if: undefined value used in conditional expression
>> if ([1,1] & [1,1]), "true",else,"false",end
error: if: undefined value used in conditional expression
>> if ([1,1] | [1,1]), "true",else,"false",end
error: if: undefined value used in conditional expression
>> a = [1,1]' | [1,1]'
a =
1
1
>> if (a), "true",else,"false",end
ans = true
so, something different is happening when evaluating the elementwise operator
inside an if, such that if it results in a non-scalar, we get an undefined
error.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63935>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, A.R. Burgers, 2023/03/16
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, A.R. Burgers, 2023/03/17
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, Arun Giridhar, 2023/03/17
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, Nicholas Jankowski, 2023/03/17
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, Arun Giridhar, 2023/03/17
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, Nicholas Jankowski, 2023/03/17
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, Arun Giridhar, 2023/03/17
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, Arun Giridhar, 2023/03/17
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, John W. Eaton, 2023/03/17
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, A.R. Burgers, 2023/03/18
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, A.R. Burgers, 2023/03/19
- [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if, John W. Eaton, 2023/03/20