Funktion abbrechen 2

Hallo Leute,:) Wenn die Variable "Button" = 100 ist, sollen die Funktionen ButtonPush und ButtonPush2 pausiert werden. Außerdem soll die Variable nicht ins Negative rutschen. Wie mache ich das am besten (if-Anweisung) ?:unsure: Danke für eure Antworten:giggle:
Kommentar abgeben zu diesen Beitrag/Code ?
Dann hier klicken

Der hier verwendete Code

<!doctype html>
<html lang="de">
<head>
<style>
*{
margin:0;
padding:0;
font-size:22px;
}
.row{
display:flex;
width:300px;
height:30px;
}
.row *{
flex:1;
text-align:center;
}
</style>
</head>
<body>
<div id="html"></div>
<script>
const max=100;
const min=0;
const hoch=10;
const menge=5;
var helper=0;
const nicht_hoeher=99;
button_html=document.getElementById('html');
for(l=0;l<menge;l++){
button_html.innerHTML+=` <div class="row">
<button class="Button" data-helfer="${l},1">Button +</button>
<p class="ausgang">0</p>
<button class ="Button" data-helfer="${l},2">Button -</button>
</div>`;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX