button that plus a number

i am new here.

I’m trying a few things now. I would like to create a button with a value plus. (Example: When I click the button, the value should go from 0 to 1 and the next click to 2 and so on.)

Another button must then have the value minus. So if it says 5 then click 4 then click 3 and so on.

The next thing I would like is that the value that comes out can be multiplied by a value.

It would be nice if there is someone who can help me with this.

Thanks, Erwin

You can add an Input element and set it to type Number it may be what you want (and that’s the easiest solution.
But if you wish to do it with numbers that’s possible as well.
Add the button elements to the page + a text element.
and use this code:

let value = 0; //or any other initial number.
const showVal = () => $w("#valueText").text =  value.ToString();
$w.onReady(() => {
$w("#plusButton, #minusButton, #multiplyButton").onClick(event => {
const target= event.target.id; 
case "plusButton":
case "minusButton":
case "multiplyButton":
//do what you want