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

9
LINES

< > BotCompany Repo | #63 // renderIntention

Lua code

function renderIntention(i)
  if i == 'I AM ON' then
    return 'I am on.'
  elseif i == 'I AM OFF' then
    return 'I am off.'
  else
    return i -- return intention verbatim so user sees SOMETHING.
  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

Comments [hide]

ID Author/Program Comment Date
479 #1000610 Edit suggestion:
!636
!629

main {
static Object androidContext;
static String programID;

public static void main(String[] args) throws Exception {
function renderIntention(i)
if i == 'I AM ON' then
return 'I am on.'
elseif i == 'I AM OFF' then
return 'I am off.'
else
return i -- return intention verbatim so user sees SOMETHING.
end
end
}}
2015-08-18 17:10:55  delete 
477 #1000604 (pitcher) 2015-08-20 15:28:24

add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 218 [visualize]

Snippet ID: #63
Snippet name: renderIntention
Eternal ID of this version: #63/1
Text MD5: c75978762721bef5882e6fc11e6b9e1a
Author: stefan
Category: intention renderer
Type: Lua code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2013-12-31 17:15:25
Source code size: 218 bytes / 9 lines
Pitched / IR pitched: Yes / Yes
Views / Downloads: 1062 / 317
Referenced in: [show references]