10-18-2019 01:43 PM
I know that NaN never equals anything (even itself). So I'm unsurprised that if you feed "Is Value Changed.vim" an NaN, it will always return True. I think I'm okay with that.
I just wanted to float this comment out to see if anyone else felt differently (or perhaps was unaware of this). Does anybody think a clarification be included in the help documentation for "Is Value Changed.vim"?
10-18-2019 02:58 PM
NaN is not a number, but it is a "value". Is Value Changed is usually used to see if following code needs to be rerun because the result will be different due to a change in the value. Is Value Changed is not about numbers at all, so I would say that NaN should not count as "changed" from NaN.
10-19-2019 03:29 AM
What we would rather have is the LabVIEW equivalent of the "is()" function in Javascript:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is