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

6
LINES

< > BotCompany Repo | #1025567 // agiBlue_sliceID - get slice ID from name (or keep ID)

JavaX fragment (include)

sS agiBlue_sliceID(S nameOrID) {
  S id = agiBlue_sliceForName(nameOrID);
  if (id != null) ret id;
  if (possibleGlobalID(nameOrID)) ret nameOrID;
  fail("Slice not found: " + nameOrID);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025567
Snippet name: agiBlue_sliceID - get slice ID from name (or keep ID)
Eternal ID of this version: #1025567/2
Text MD5: e3757928558a6c0d8015fbdc235b8d16
Author: stefan
Category: javax / agi.blue
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-03 17:42:19
Source code size: 194 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 219 / 253
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)