Coming from a software engineering background, I am quite used to using conditional statements in my everyday mathematics. I know there are some higher math symbols to represent conditional statements, but what I'm looking for is a way to define the basic "if" in a problem.
The example inspiring this question is 'defining the cost-per-watt of a solar battery'. The solar battery, at 3.333...kWh, is priced at \$2,727.80. The larger model, at 10.0kWh, is priced at \$6,029.59. Therefore, the cost-per-watt changes depending on the batteries used (for now we can ignore the hours)
If we are using one small battery, our cost-per-watt is approximately \$0.82. Using 2, it would be the same. When using 3, however, we would instead use the larger battery, and the cost-per-watt would be reduced to approximately \$0.60.
Is there a way to make a single formula to algebraically determine cost-per-watt for 2 possible scenarios, or would something like this absolutely require the use of arrow notation or the word "if"?
Note: I've looked online for an answer to this question and all I can find is what a conditional statement is; very not helpful for someone like myself.
Note 2: Alternatively, I would be open to seeing an example of a functional conditional statement, where it effectively functions as one without necessarily being one.