HP Prime Forum

Full Version: "Contains" Function and String
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Reference URL's