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
endtest 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
2 comment(s) hidden. show
| 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: | 1998 / 481 |
| Referenced in: | [show references] |