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

8
LINES

< > BotCompany Repo | #1011054 // ai_renderNode

JavaX fragment (include)

static S ai_renderNode(WebNode n) {
  ret ai_renderNode(n, "-");
}

static S ai_renderNode(WebNode n, S defaultText) {
  if (n == null || empty(n.labels)) ret defaultText;
  ret joinWithComma(web_texts(n));
}

Author comment

Began life as a copy of #1010834

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011054
Snippet name: ai_renderNode
Eternal ID of this version: #1011054/1
Text MD5: bd1f902ad80a8eab9e2d16fa08047e29
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-11 23:57:51
Source code size: 215 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 440 / 482
Referenced in: [show references]