-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added scoop to if, while, delay and statments block
- Loading branch information
Showing
2 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
|
||
def Obj{ | ||
|
||
default state bob{ | ||
|
||
on Frame(i:Real){ | ||
|
||
/*for(var i : String in {"1", "2", "3", "4"}){ | ||
print(i); | ||
} | ||
|
||
for(var key : String, var val : Int in {"1"=1, "2"=2, "3"=3, "4"=4}){ | ||
print(key); | ||
}*/ | ||
|
||
//var array : Array<Int> = {1, 2, 3}; | ||
var array : Array<Bool> = {true,true}; | ||
var size : Int = 54; | ||
var total : Int = 0; | ||
var str : String = "asf"; | ||
var dic : Map<String, String> = { "A"="a", "B"="b"}; | ||
|
||
var array2 : Array<String> = {"1", "2", "3"}; | ||
|
||
for(var val : String in array2) print(val); | ||
|
||
for(var val : Bool in array) print("lol"); | ||
|
||
for(var val : String, var val1 : String in dic) print("lol"); | ||
|
||
for(var val : Int; val<size; val++;) total = total+val ; | ||
|
||
if( size == 54 ) print("bob"); | ||
if( str == "54" ) { | ||
var str:String = "bob"; | ||
print(str); | ||
} else { | ||
print(str); // uses def below..still kind of a bug. | ||
var str:String = "bob"; | ||
print(str); | ||
} | ||
print(str); | ||
|
||
while(str){ | ||
var str:String = "bob"; | ||
print str; | ||
} | ||
in 3 seconds { | ||
var str:String = "bob"; | ||
print str; | ||
} | ||
in 3 seconds var str:String = "bob"; | ||
{ | ||
var str:String = "bob"; | ||
print str; | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters