How to script "GetAxisUp"?

I have a game with a fixed 2D camera angle, with a car that drives from left to right. I got the car moving with wheel colliders and basic motor script but for the purposes of gameplay I’d like the car to automatically brake whenever the player lets off the gas (A or D keys), A.K.A GetAxis “Horizontal”

I figure the best way to do this is a simple boolean of if the gas is let up, the car is braked and if the car is braked, apply brakeTorque (does this sound right?). But I don’t know how to specify something like Input.GetAxisUp (“Horizontal”)

You can basically wrap that in an IF:

if(!Input.GetAxis(“Horizontal”)) {
// do brake stuff
}

I don’t think you would want a GetAxisUp function, because that would mean applying the brakes once only, when presumably you want them applied continuously as long as the horizontal axis is not used. So:

if (GetAxis("Horizontal") == 0.0) {
    // do brake stuff
}