Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #204 // User function for exit command

Lua code

function userFunction(input)
  print("input:", input)
  if input == 'exit' then
    print('exiting')
    exit = true
  end
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

Image recognition results

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: 693 / 258
Referenced in: [show references]