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

16
LINES

< > BotCompany Repo | #2000292 // Process questionnaire

New Tinybrain snippet

get("#515") -- splitLines

text = getSnippet("#2000291")
lines = splitLines(text)

for i=1, #lines do
  local _, _, _needBridgeID = line:find("^(#%d+)")
  if _needBridgeID then
    needBridgeID = _needBridgeID
  end
  
  local _, _, _verdict = line:find("^ *Your verdict: *(.*)")
  if verdict then
    print(needBridgeID..": "..verdict)
  end
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: 524 / 112
Referenced in: [show references]