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

52
LINES

< > BotCompany Repo | #3000482 // Smart Bot's answer to: !eval lines(termsContainingAllJavaTokens("if", "then"))

New Tinybrain snippet

1  
[13052 ms] !store-triple "#guessed language is german" -> if then -> #say "Sorry, I don't speak German"
2  
!store-triple {a and b} is true -> if X then Y -> {a is true} and {b is true}
3  
!store-triple {a is true} and {b is true} -> if X then Y -> {a and b} is true
4  
"!eval flexMatchIC(/"if * then * endif/", loadSnippet(#1011999))"
5  
"!eval getFlexMatchIC(/"if * then * endif/", loadSnippet(#1011999))"
6  
[[
7  
If   swic(trimFirstLine(#input), "If ")
8  
and  swic(trimLastLine(#input), "then ")
9  
then (#input is multiline-if-then)
10  
]] -> is -> the multiline-if-then-rule
11  
[[
12  
If   swic(trimFirstLine(#input), "If ")
13  
and  swic(trimLastLine(#input), "then ")
14  
then (#input is multiline-if-then)
15  
]] is the multiline-if-then-rule
16  
[[If  (swic(trimFirstLine(#input), "If ")
17  
and  (swic(trimLastLine(#input), "then ")
18  
then (#input is multiline-if-then)]] -> is -> the multiline-if-then-rule
19  
[[If  (swic(trimFirstLine(#input), "If ")
20  
and  (swic(trimLastLine(#input), "then ")
21  
then (#input is multiline-if-then)]] is the multiline-if-then-rule
22  
[if, "what is 2+2", then, "4. duh"]
23  
an if-then pattern
24  
an if-then pattern -> is -> a pattern
25  
an if-then pattern is a pattern
26  
if  (Unix is the best operating system)
27  
then (Unix
28  
if  (Unix is the best operating system)
29  
then (Unix is an operating system)
30  
if (Unix -> is -> the best operating system) then (Unix
31  
if (Unix -> is -> the best operating system) then (Unix is an operating system)
32  
if * then * endif
33  
if * then * endif" flexMatchI"
34  
if * then * endif" is an if patter"
35  
if * then * endif" with flexMatchI"
36  
if * then * endif" with flexMatchIC is an if patter"
37  
if * then * endif/" flexMatchI/"
38  
if * then * endif/" with flexMatchI/"
39  
if then
40  
if X then Y
41  
if {$X is too big} then {$X does not fit
42  
if {$X is too big} then {$X does not fit in $Y}
43  
if {(Unix is the best operating system)
44  
then (Unix is an operating system)}
45  
if {(Unix is the best operating system)
46  
then (Unix}
47  
if {* then * endif" with flexMatchI"}
48  
if {* then * endif}
49  
if {X then Y}
50  
if {{$X is too big} then {$X does not fit in $Y}}
51  
if-then pattern
52  
the multiline-if-then-rule

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: #3000482
Snippet name: Smart Bot's answer to: !eval lines(termsContainingAllJavaTokens("if", "then"))
Eternal ID of this version: #3000482/1
Text MD5: 49d34a10ce9c4958f199e8e1404e05a9
Author: someone
Category:
Type: New Tinybrain snippet
Gummipassword: smart-bot-for-user
Uploaded from IP: 178.3.148.72
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-19 00:35:27
Source code size: 2046 bytes / 52 lines
Pitched / IR pitched: No / No
Views / Downloads: 294 / 86
Referenced in: [show references]