ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Logical AND vs logical OR on empty boolean array

Just satisfying a curiousity...Can anyone tell me the logic behind this behavior (LV 7.1,8.0 and 8.2 do it)?
 
Logical AND on empty Bool Array = TRUE
Logical OR on empty Bool Array = FALSE
 
Of course there are very simple ways to work around this, but it doens't make sense. If the OR operator is FALSE for a given data set, how can the AND operator be TRUE?
 
Pic for proof.
0 Kudos
Message 1 of 3
(4,692 Views)


@vituning wrote:
... how can the AND operator be TRUE?


The reasoning/logic has been discussed a few times in the past

e.g.  http://forums.ni.com/ni/board/message?board.id=170&message.id=86827&requireLogin=False

=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 2 of 3
(4,680 Views)
Well, there you have it!
Thanks.
0 Kudos
Message 3 of 3
(4,669 Views)