Welcome to Razorback Railway Q&A, where you can ask questions and receive answers from other members of the community.

String comparison does not match when equal

0 votes
asked Jan 15 in GSC by jenolan (3,530 points)

1 Answer

0 votes

If you perform a string comparison on two literals eg;

if( "Imperial" == "Imperial" )

The GSC language will not act as expected, normally this is not an issue but if you are compiling Activities with the RBR compiler and a macro is set like this;

MapMap = "Imperial"

And then you code;

if( "<$MapMode>" == "Imperial" )

This is presented to GSC as shown in the opening example and will not work as expected.

answered Jan 15 by jenolan (3,530 points)

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Apr 18 in Athena by jenolan (3,530 points)
0 votes
1 answer