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).

!7

p { roboDo(#1013753, r {
  replace print with say.
  
  if (has("user language", "=", "english"))
    ret with print("I know you speak English.");

  if (has("user language", "!=", "english"))
    ret with print("I know you don't speak English.");

  S answer = input("Do you speak English?");
  if (isYes(answer)) {
    post("user language", "=", "english");
    print("Very nice. Comment ca va?");
    enableConsoleInput();
    sleepSeconds(2);
    print("Just kidding. How are you?");
  } else {
    post("user language", "!=", "english");
    print("Too bad");
    //print("Too bad. Sprechen Sie deutsch?");
  }
}); }

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: 320 / 852
Version history: 2 change(s)
Referenced in: [show references]