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

16
LINES

< > BotCompany Repo | #2000292 // Process questionnaire

New Tinybrain snippet

1  
get("#515") -- splitLines
2  
3  
text = getSnippet("#2000291")
4  
lines = splitLines(text)
5  
6  
for i=1, #lines do
7  
  local _, _, _needBridgeID = line:find("^(#%d+)")
8  
  if _needBridgeID then
9  
    needBridgeID = _needBridgeID
10  
  end
11  
  
12  
  local _, _, _verdict = line:find("^ *Your verdict: *(.*)")
13  
  if verdict then
14  
    print(needBridgeID..": "..verdict)
15  
  end
16  
end

download  show line numbers   

Snippet is not live.

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #2000292
Snippet name: Process questionnaire
Eternal ID of this version: #2000292/1
Text MD5: 978710084c86f644399d7b5aa9e26c7f
Author: stefan
Category:
Type: New Tinybrain snippet
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-03-15 00:56:09
Source code size: 361 bytes / 16 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 469 / 91
Referenced in: [show references]