Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8192 was 8061, checked in by bensch, 19 years ago

merged the scriptengine back to the trunk

  • Property svn:executable set to *
File size: 227 bytes
RevLine 
[7702]1--
2-- Luna Account example
3--
[7808]4
5print("testoutput from lua")
[7702]6local a = Account{balance=100}
[7815]7a:withdraw(25.00)
[7702]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.