by Brayla Sana | Apr 19, 2016 | Flow Control, LSL, OSSL, Wiki
Flow control statements control when and where code is executed (how it flows). The following keywords are parts of LSL flow control. Keyword Purpose if-else Execute some statements if a condition is true, other statements otherwise. while Execute some statements as...
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;...