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

5
LINES

< > BotCompany Repo | #168 // "return true" suggester

Lua code - Suggester

if snippet.type == 9 or snippet.type == 17 then
  if not endsWith(snippet.text, 'return true') then
    return {'append-line', 'return true'}
  end
end

download  show line numbers   

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

Comments [hide]

ID Author/Program Comment Date
223 #1000604 (pitcher) 2015-08-18 00:51:43
214 #1000610 (pitcher) Edit suggestion:
!636
!629

main {
static Object androidContext;
static String programID;

public static void main(String[] args) throws Exception {
if snippet.type == 9 or snippet.type == 17 then
if not endsWith(snippet.text, 'return true') then
return {'append-line', 'return true'}
end
end
}}
2015-08-18 00:51:21

add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 155 [visualize]

Snippet ID: #168
Snippet name: "return true" suggester
Eternal ID of this version: #168/1
Text MD5: d6ec8c72ea4ffa4afd6a8616b5f8b833
Author: stefan
Category:
Type: Lua code - Suggester
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2014-01-15 02:22:32
Source code size: 155 bytes / 5 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 6392 / 206
Referenced in: [show references]