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: 

Comparison of array element always returns false

Here,the comparison of array element with a constant always returns false.That is in true conditions also.

Is there any other way for array element comparison??

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 1 of 3
(2,742 Views)

Hi danil,

 

another basic question with an easy answer:

check.png

- your example array doesn't contain an element "21"

- you only indexed the first element...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,739 Views)

Sorry.It is working.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 3 of 3
(2,728 Views)