interrupt

hi, i'm new in Arduino.. i try to make an interrupt with a button. the problem is that this button has more function. so how can the button trigger the interrupt just part of the time? thank's

i try to make an interrupt with a button

That is almost certainly the wrong thing to be doing.

the problem is that this button has more function.

The switch is either pressed, or it isn't. How much more functionality do you think it has?

so how can the button trigger the interrupt just part of the time?

It can't. The switch causes the pin to become HIGH just once or to become LOW just once, each time it is pressed or released (if you ignore the possibility of bouncing).

i tיought maybe it's possible with a correct program. the button has more one function.

Depending on the state of other variables in the function, the action performed by the button can change.

The "power" button on your TV remote.can turn the TV on or off. Which one depends on if it was on or off when you pressed the button.

yossi84:
i tיought maybe it's possible with a correct program. the button has more one function.

A button can have more than one function.

https://lmgtfy.com/?q=arduino+button+library