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

3
LINES

< > BotCompany Repo | #1010842 // trueOrNull - convert true to TRUE, false to null

JavaX fragment (include)

static Bool trueOrNull(Bool b) {
  ret eq(b, false) ? null : b;
}

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: #1010842
Snippet name: trueOrNull - convert true to TRUE, false to null
Eternal ID of this version: #1010842/2
Text MD5: 37d927b640c75190d76dc7f36e4d8561
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-16 15:40:38
Source code size: 67 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 469 / 488
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)