| NWN2 Scripting. |
Simulation Training. Introduction Home First Program Seeing Results Variables and Data Types Comments Functions Data Conversion Random Numbers Concatenation Arithmetic Operators Compound Assignments One More or Less Precedence Relational Operators The Open Branch The Closed Branch Logical AND Logical OR Compound Statements ELSE If Switch Case The ? Operator The for Loop The while Loop The do while Loop Introduction to Functions Passing Values Passing Multiple Values Multiple Functions Simplifying Functions TRUE/fALSE Conditions Return Values Setting Global Variables Getting Global Variables Setting Local Variables Getting Local Variables WayPoints Introduction Static Waypoint Sets Dynamic Waypoint Sets Dynamic WP Cycles Input Output |
ConcatenationConcatenation means add to the end or append. You will find that there are times when the ability to connect one string to another is very helpful. This section gives a brief but important example of how this is done. Connecting Two StringsThe following program is an example of concatenating (connecting together) two strings:
This string has another string connected to it. Thanks!
An ApplicationAn interesting application of concatenation is shown in the program below:
The number I got is XX
|
|