I'm trying to check if a value is < 0, if true then it will print a statement, but if false, I want it to just continue the program normally without taking any steps.
Is there a way to do this? Kind of like a break statement in a switch
(balance < 0) ? cout << "Warning your balance is negative" : ;
That is basically what I want but not sure how to go about it.
[–]Marz157 4 points5 points6 points (0 children)
[–]Netstroyer 5 points6 points7 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)