Mathematically Find Max Value without Conditional Comparison

前端 未结 14 644
暗喜
暗喜 2020-12-03 03:39

----------Updated ------------

codymanix and moonshadow have been a big help thus far. I was able to solve my problem using the equations and instead of using right

14条回答
  •  广开言路
    2020-12-03 03:47

    It depends which language you're using, but the Ternary Operator might be useful.

    But then, if you can't perform conditional checks in your 'scripting application', you probably don't have the ternary operator.

提交回复
热议问题