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

24
LINES

< > BotCompany Repo | #1013772 // Do you speak English? v2

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (21709L/155K).

1  
!7
2  
3  
p { roboDo(#1013753, r {
4  
  replace print with say.
5  
  
6  
  if (has("user language", "=", "english"))
7  
    ret with print("I know you speak English.");
8  
9  
  if (has("user language", "!=", "english"))
10  
    ret with print("I know you don't speak English.");
11  
12  
  S answer = input("Do you speak English?");
13  
  if (isYes(answer)) {
14  
    post("user language", "=", "english");
15  
    print("Very nice. Comment ca va?");
16  
    enableConsoleInput();
17  
    sleepSeconds(2);
18  
    print("Just kidding. How are you?");
19  
  } else {
20  
    post("user language", "!=", "english");
21  
    print("Too bad");
22  
    //print("Too bad. Sprechen Sie deutsch?");
23  
  }
24  
}); }

Author comment

Began life as a copy of #1013753

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013772
Snippet name: Do you speak English? v2
Eternal ID of this version: #1013772/3
Text MD5: 492556b5deb3a50b796061136500cfac
Transpilation MD5: 9fa5cf74ed0292c1f45056017be2a19e
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-01 16:11:40
Source code size: 648 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 329 / 865
Version history: 2 change(s)
Referenced in: [show references]