Skip to content

Commit 20df695

Browse files
Cleaned up the functions list and updated the capablities of the functions to make reuse of the base
Added "freestatement" commands Created for and while loop
1 parent b0eef86 commit 20df695

File tree

80 files changed

+551
-519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+551
-519
lines changed

example/Basic Interface.vi

0 Bytes
Binary file not shown.

example/Navin-Lap.solitontech.local/Arithmetic Manipulation.lsl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ print(variable)
1010
variable = 1 * 2 * 6
1111
print(variable)
1212

13-
variable = (1 - 2) - (7-8) + (7/3.5) * 5 + (5+5) / 6 * 2 -1
13+
a = gettick()
14+
15+
\\variable = (1 - 2) - (7-8) + (7/3.5) * 5 + (5+5) / 6 * 2 -1
1416
print(variable)
1517

18+
print("time taken is : "+str((gettick()-a)))
19+
1620
print(randomnumber())
1721

1822
\\the operation works from right to left
@@ -33,5 +37,9 @@ print(variable)
3337
variable = 1 / 2 - 6 * 2 + 6.5
3438
print(variable)
3539

40+
i=0
41+
print(i++)
42+
print(i--)
43+
3644
variable = 1 - 2 - 6 * 2 + 6.5
3745
print(variable)
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
a = gettick()
2+
13
print(4==4)
24
print(4==5)
35
print("Navin"=="Navin")
46
print("Navin"=="NAVIN")
57
print(True==True)
68
print(True==1)
7-
print((1.0+1.0)==2.000000000000001)
9+
print(True==False)
10+
print((1+1.0)==2.00000)
11+
12+
print("time taken is : "+str((gettick()-a)))
Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1+
print("while loop....")
2+
13
i=0
2-
j=0
3-
print("initial values is:")
4-
print(i)
5-
print("")
6-
while(i<=9)
7-
->while(j<=9)
8-
->->i=i+1
9-
->->j=j+1
10-
->->print(strmerge(str(i),str(j)))
4+
while(i<11)
5+
->print(i)
6+
->i++
117

128
print("")
9+
print("for loop....")
1310

14-
y=0
15-
for(x=0;x>=y;x=x+1)
16-
->y=y-1
17-
->print(strmerge(str(x),str(y)))
11+
for(x=0,y=0;x<11;x++,y++)
12+
->print(x*y)

example/Navin-Lap.solitontech.local/String Operations.lsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ print("Na"+"vin")
44

55
print(substr("Navin",1,2))
66

7+
a="lol"
8+
b="7"
9+
print(a+b)
10+
711
print(toupper("navin"))
812

913
print(isempty(""))

example/Navin-Lap.solitontech.local/play ground.lsl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
i=0
22
j=0
3-
print(strmerge("na","vin"))
4-
print(strmerge(str(i), str(j), str(j)))
3+
print(str(i++)+str(j--))
54

65

76
\\print(isempty(""))
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)