Is this as intended?
All_Indicies_Error.dyn (28.8 KB)
Hi @SteveDFT I guess your 5 in the codeclock is interger…try with 5.0
Hi @sovitek,
I guess my question is. Why aren’t System.Double supported? Shouldn’t they be? Is this a bug?
To expand on @sovitek’s answer, AllIndicesOf
and IndexOf
are object comparisons and not value comparisons. The object is different because integers and doubles are different object types. Even though their values are still the same.
If you’re going to be dealing with numbers a lot and need to make a variety of comparisons, it’s best to force everything into a double.