cashscript icon indicating copy to clipboard operation
cashscript copied to clipboard

Consider adding a ternary operator

Open mr-zwets opened this issue 8 months ago • 0 comments

Solidity has it

now we would have to do

int someVar = 5;
if(condition){
  someVar = 6;
}

or

int someVar = 5;
if(condition) someVar = 6;

instead of

int someVar = condition ? 6 : 5;

mr-zwets avatar Feb 17 '25 09:02 mr-zwets