I am trying to compare characters in a string, which is created based on user entry. This is an example of what I have right now:
theText = new String(inputText_variable);
i = 0;
if ((theText.charAt(i) == "#" || theText.chatAt(i) == "*") && (i == 0)) {
trace ("Woot");
}
Now the problem I have is that if I enter ‘#blahblah’, it will detect the # and trace Woot, while if I enter ‘*blahblah’ it won’t even register that the * is in the string.
Anyone have any suggestions as to why this is?