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

3
LINES

< > BotCompany Repo | #1021655 // stringIfTrue (otherwise "")

JavaX fragment (include)

sS stringIfTrue(bool b, S s) {
  ret b ? s : "";
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021655
Snippet name: stringIfTrue (otherwise "")
Eternal ID of this version: #1021655/1
Text MD5: e4827dc5cc05adfeed0eb969d7cd7fb9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-23 12:40:19
Source code size: 52 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 221 / 280
Referenced in: [show references]