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

3
LINES

< > BotCompany Repo | #1031952 // ifZero

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (28L/1K).

1  
static int ifZero(int x, int i) {
2  
  ret i == 0 ? x : i;
3  
}

Author comment

Began life as a copy of #1024841

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031952
Snippet name: ifZero
Eternal ID of this version: #1031952/1
Text MD5: cb20b18ba1b32b94526544e5655bc057
Transpilation MD5: f4a0b148fa011e31068476e7d3b066f5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-05 19:05:22
Source code size: 59 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 199 / 248
Referenced in: [show references]