This is some code that behaves very strangly:
?mainposter[m.li].poster[itemindex].action=“Play”
console output is false
?mainposter[m.li].poster[itemindex].action
console output is Play
Now how is this possible?
This is some code that behaves very strangly:
?mainposter[m.li].poster[itemindex].action=“Play”
console output is false
?mainposter[m.li].poster[itemindex].action
console output is Play
Now how is this possible?
well, I guess brightscript IS case sensitive in string comparisons. I thought it wasn’t.
Page 6 of the manual, 2.6 and 2.7:
"BrightScript is not case sensitive. "
As a language, no it’s not. Strings are, by the nature of their most common encodings, case sensitive. This is a good thing, as if strings were case insensitive, there’s little you can do to get case sensitive behavior, and what could be offered by the language would be cumbersome. Getting case insensitive matching from case sensitive strings is trivial, just upper or lowercase each string before matching.
Yeah, I just took that line as covering the whole language. Fortunately I was pretty consistant about case, except in a couple of places, even though I made the incorrect assumption about it from the start.