Take this script as example:
default
{
state_entry()
{
integer i;
for (i = 0; i < 3; i++)
{
integer j;
j = j + 1;
llSay(0, (string)j);
}
}
}
Here is the result comparison:
Second Life
Object: 1
Object: 1
Object: 1
LSLEditor
New Script: 1
New Script: 2
New Script: 3