1 | function userFunction(input) |
2 | print("input:", input)
|
3 | if input == 'exit' then |
4 | print('exiting')
|
5 | exit = true |
6 | end |
7 | end |
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Recognizer | Recognition Result | Visualize | Recalc |
|---|---|---|---|
| #308 | 132 | [visualize] |
| Snippet ID: | #204 |
| Snippet name: | User function for exit command |
| Eternal ID of this version: | #204/1 |
| Text MD5: | 896643aca6280fa55710f31a2d9f89ab |
| Author: | stefan |
| Category: | |
| Type: | Lua code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2014-01-23 01:56:18 |
| Source code size: | 132 bytes / 7 lines |
| Pitched / IR pitched: | Yes / Yes |
| Views / Downloads: | 1080 / 343 |
| Referenced in: | [show references] |