Name: | Example: | Used for: | Example: |
Parentheses | () |
1. Containing arguments within a function or event. 2. For containing code in a statement. 3. When typecasting a value from one type to another. |
1. llSay(0,"Hello.") 2. if ( (1 > 0) || (2 < 1) ) 3. (string)random_number |
Braces | {} | Containing a code block. | if (a) { // do stuff } |
Square Brackets | [] | Describing the contents of a list. | list list_name = [1, 3.9, "Hello"]; |
Angle Brackets | <> | Describing the values of a vector or rotation. |
Vector: <1.0, 2.0, 0.0> Rotation: <0.0, 0.0, 0.0, 1.0> |