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

8
LINES

< > BotCompany Repo | #1010012 // web_performReplaceX

JavaX fragment (include)

1  
static void web_performReplaceX(Web swapWeb, Web web) {
2  
  for (Pair<WebNode> p : web_relationsOfTypeIC(swapWeb, "replace with")) {
3  
    S lbl1 = web_text(web_forwardRelationTo(p.a, "X"));
4  
    S lbl2 = web_text(web_forwardRelationTo(p.b, "X"));
5  
    if (lbl1 != null && lbl2 != null)
6  
      web_replaceLabelsX(web, web_text(p.a), lbl1, web_text(p.b), lbl2);
7  
  }
8  
}

Author comment

Began life as a copy of #1010007

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: #1010012
Snippet name: web_performReplaceX
Eternal ID of this version: #1010012/1
Text MD5: 7a069fe8bdfc5c7eea87671a21d52e9d
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-28 21:17:04
Source code size: 366 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 488 / 466
Referenced in: [show references]