Answers for "question mark in solidity"

2

question mark in solidity

boolean statement ? true result : false result;

/*
For example, if we take this if statement:
*/
if (a > b) {
    result = x;
} else {
    result = y;
}
// can be also writen:
result = a > b ? x : y;
Posted by: Guest on October-20-2020
2

question mark in solidity

(condition) ? {code for YES} : {code for NO}
Posted by: Guest on September-08-2021

Code answers related to "question mark in solidity"

Browse Popular Code Answers by Language