Summary
This chapter showed how to parse strings. Second Life scripts often receive data directly from users as they type. The functions presented in this chapter help scripts to make sense of this data. The functions in this chapter are of little use alone. These functions will usually be incorporated into larger scripts.
Functions were provided that determined set membership of strings. The isNumeric function allows a script to determine whether a string only contains numeric values. The isAlpha function allows a script to determine whether a string only contains alphabetic characters. The isAlphanumeric function allows a script to determine whether a string is alphanumeric.
Chapters one and two presented scripts that speak to the user. The scripts presented so far do not directly interact with the Second Life world. Chapter three will introduce scripts that directly interact with the Second Life world. The recipes in Chapter 3 show how to create building components. This includes items such as doors and elevators.
