If(choice.equal("string")) does not work

Hi,

I am using the TMS studio v1.1. I created a project with several states (menu, news, sport, etc). From menu state there are transition lines that connect menu to news and menu to sport.
I created a string object java.lang.String which I called choice to capture user selection (the value of selection is “News” or “Sport”. Then in one of the ‘transition line’ I use ‘If’ action. I need to put an expression, apparently this expression does not behave properly when I use choice.equal(“News”), but when I just use (choice==“News”), it works fine. TMS does not give me any error, it is just giving me false eventhough the value is “News”.

Anyone know what is the problem with the expression?

thanks & regards
Paulus

Hi,
to be able to reproduce that problem it would be great to have a small example. Could you create one and attach that?

thanks,
Waltraud Buettner

Please see the attached project file.

thanks & regards
Paulus