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

5
LINES

< > BotCompany Repo | #1021473 // ai_goodBadToInt - -1, 0 or 1

JavaX fragment (include)

static int ai_goodBadToInt(S s) {
  if (eq(s, 'good)) ret 1;
  if (eq(s, 'bad)) ret -1;
  ret 0;
}

Author comment

Began life as a copy of #1021469

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021473
Snippet name: ai_goodBadToInt - -1, 0 or 1
Eternal ID of this version: #1021473/2
Text MD5: aa8a820500f58242c8c4e8d36affa92c
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-14 14:03:02
Source code size: 102 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 319 / 333
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)