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

27
LINES

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

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (21715L/156K).

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

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): cfunsshuasjs, mqqgnosmbjvj, onxytkatvevr, tvejysmllsmz

No comments. add comment

Snippet ID: #1013753
Snippet name: Do you speak English?
Eternal ID of this version: #1013753/26
Text MD5: f70d31d1af2ff87313e9b05ee1c73409
Transpilation MD5: 020a715ee7f79ead9910925256a702ce
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): Yes
Created/modified: 2018-02-27 10:07:56
Source code size: 639 bytes / 27 lines
Pitched / IR pitched: No / No
Views / Downloads: 520 / 1572
Version history: 25 change(s)
Referenced in: [show references]