1 | function renderIntention(i) |
2 | if i == 'I AM ON' then |
3 | return 'I am on.' |
4 | elseif i == 'I AM OFF' then |
5 | return 'I am off.' |
6 | else |
7 | return i -- return intention verbatim so user sees SOMETHING. |
8 | end |
9 | 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
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: | 1996 / 481 |
| Referenced in: | [show references] |