jeffheaton's picture
  • Comparing strings
  • Determining string set membership
  • Parsing strings
  • Reading notecards

    Strings are sequences of characters. These strings usually come from a notecard, are spoken by an avatar, or by the script itself. Declaring a string in the Linden Scripting Language is very easy. The following lines of code create a string named myString that contains the text “Hello World”.

string myString = "Hello World";

    First, string comparison functions will be demonstrated. These functions will allow the script to compare strings in a variety of ways. Finally, string parsing will be demonstrated.


Copyright 2005 - 2012 by Heaton Research, Inc.. Heaton Research™ and Encog™ are trademarks of Heaton Research. Click here for copyright, license and trademark information.