Say Output
Outputs a value or message.
Say "Hello World" Say Money
A searchable reference for InfiniteScript commands, structures and language keywords.
Say "Hello World" Say Money
Local Storage Money = 100 Local Storage PlayerName = "Adan" Local Storage IsAdmin = true
Set Money = 500
Change Money by 100
If Money > 100
Say "Rich!"
End
If Money > 100
Say "Rich!"
Else
Say "Keep earning."
End
For i = 1 to 5
Say i
End
While Money < 500
Change Money by 50
End
Break
Continue
Function GiveMoney Amount
Change Money by Amount
End
Return Money
Input PlayerName Input Number Age Input Boolean IsAdmin
Random Number Roll = 1 to 6
Local Storage PlayerName = "Adan"
UI
Window Main
Title "My App"
End
End
Window Main
Title "Infinite App"
End
Title "InfiniteScript"
Size 800, 600
Text Welcome
Content "Hello!"
End
Button Start
Text "Get Started"
End
On Click
Say "Clicked!"
End
Animate DemoButton
Property Scale
From 1
To 1.1
Duration 150
Easing EaseOut
End
Backend
Route GET "/api/hello"
Return {
message: "Hello from InfiniteScript!"
}
End
End
Route GET "/api/hello"
Scene Main
Camera MainCamera
End
End
Camera MainCamera
Position 0, 2, 8
End
Model Robot
File "robot.obj"
Position 0, 0, 0
End
Light Sun
Type Directional
Intensity 2
End