HP Prime Forum
"Contains" Function and String - Printable Version

+- HP Prime Forum (http://forum.hp-prime.de)
+-- Forum: HP Prime (/forumdisplay.php?fid=1)
+--- Forum: Questions to HP (/forumdisplay.php?fid=3)
+--- Thread: "Contains" Function and String (/showthread.php?tid=549)



"Contains" Function and String - RichardZ - 21-02-2017 08:24 AM

What am I doing wrong here:

AA:={"ABC","DEF"}
contains(AA,"DEF")
--> 0 (not found)

BUT those work:
contains(AA,AA(2))
--> 2

BB:="DEF"
contains(AA,BB)
--> 2

So it seems that the prime "sees" a string and a string in a variable different...
Am I missing something Huh