Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/script_engine/luna/account.lua @ 8230

Last change on this file since 8230 was 8061, checked in by bensch, 18 years ago

merged the scriptengine back to the trunk

  • Property svn:executable set to *
File size: 227 bytes
Line 
1--
2-- Luna Account example
3--
4
5print("testoutput from lua")
6local a = Account{balance=100}
7a:withdraw(25.00)
8a:deposit(50.00)
9print("Account balance = $"..a:balance())
10
11local e = Euclid()
12print("Euclid gcd = "..e:gcd(10000,2))
Note: See TracBrowser for help on using the repository browser.