by Brayla Sana | Jan 16, 2017 | Binary, LSL, Operators, OSSL, Wiki
Binary operators accept two parameters and return a single value. Most binary operators are defined for many different types of input like list, float, vector. Binary Operators: Operator Type Meaning Return Value Effect + Arithmetic Addition Sum of inputs None...
by Brayla Sana | Jan 16, 2017 | Assignment, LSL, Operators, OSSL, Wiki
The most common arithmetic operation is assignment, denoted with the “=” sign (single equal sign). Loosely translated, it means, take what is found on the right side of the equal sign and assign it to the left side. Any expression that evaluates to a...
by Brayla Sana | Jan 16, 2017 | LSL, Operators, OSSL, Wiki
In mathematics, an operator is a symbol that expresses the operation to be performed. In LSL, operators perform simple “common-sense” operations on values. The assignment operators are special in that the left hand side of the operation must be a variable....
by Brayla Sana | Jan 16, 2017 | Functions, LSL, OSSL, Wiki
Functions Defined A function can be thought of as a machine into which input is provided, and which returns output. By using functions, the same blocks of code can be used over and over again, simply by referencing them. LSL and OSSL come with hundreds of built-in...
by Brayla Sana | Apr 19, 2016 | Flow Control, LSL, OSSL, Wiki
The for loop is used to execute statements while a condition is true, and executes a line of code after each iteration/cycle/step. More commonly, it executes code a certain number of times, and operates a counter to facilitate it. Format: for (initialization; test;...