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: 

Why AND Array function gives true for empty array elements ?

In first the array control is empty the AND Array Elements function gives the result as True, is it correct  behaviour ? Explain me !
After inserting boolean conditions to the array control it works correctly.
 
i am using labview 7.1
 
screenshot attached.
 
-Kumar B.
 
 

Message Edited by Kumar B on 05-10-2007 12:50 AM

0 Kudos
Message 1 of 5
(4,424 Views)
Hi Kumar,

this is expected behaviour and (supposedly) mathematically correct:
see here,

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 5
(4,405 Views)


@TonP wrote:
this is expected behaviour and (supposedly) mathematically correct:


Ton,

It is supposedly MATHEMATICALLY correct, is it LOGICALLY correct... ?! Smiley Wink

Just joked ! Smiley Very Happy

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 5
(4,397 Views)
Another test to check the logic of your mind : What is the expected result of Check if File or Folder exists.vi with an empty path wired to it ?



And the answer is...


Message Edité par JB le 05-10-2007 09:30 AM

Message 4 of 5
(4,387 Views)
Without any doubt the answer in "True"
 
Empty path is the root ("/") path.  On windows and mac this is an imaginary folder that contains all the hard drives as subdirectories. On linux, this is the root / directory.

Side note : what happens if you launch "Delete Recursive function" with an empty path as input :-o, be carefull !

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 5 of 5
(4,378 Views)