Currently, my algorithm is someValue + x. I am trying to figure out how I can transform x to 1 if its greater than 0, or to 0 if its equal to 0.
I don't want to use an if-else to produce this, but rather just transform x in my algorithm by itself.
For example: If someValue = 20, x = 4. It would produce 20 + 1 = 21. But if x = 0. It would just produce 20.
Thanks.