09-24-2025 07:15 AM
Hello,
I am using array of push button. I want to know which number of button has been pushed. I want to know button position. For that, Accoding to my knowledge It can be get it from Arraz indexing method. However I can not get it. Could any one has some idea.
My major goal is to get the button number which is pressed or unpressed.
Solved! Go to Solution.
09-24-2025 07:56 AM
09-24-2025 10:07 AM - edited 09-24-2025 10:16 AM
@Yamaeda wrote:
Personally, I prefer "not equal" where that diagram constant must be a TRUE, of course.
Also, of you want to know the new value, use the blue value to index into the newval array.
09-25-2025 02:04 AM
Thank you @Yamaeda and altenbach
your solution works!
have a short question on that,
If button 1 is pressed = True, I want some mgs "Button is pressed "
and if button 1 is unpressed = False, I want some mgs "Button is unpressed "
Even if Any button is already pressed, let's say button 2 is already pressed, it does not affect the other buttons' value
In this senario. I would prefer to use CASE structure "True" and "False". But I could not understand which value do i need to attched with Case structure.
Please give me your guidance or any other idea.
09-25-2025 02:19 AM - edited 09-25-2025 02:19 AM
Hi Rsash,
@Rshah31 wrote:
If button 1 is pressed = True, I want some mgs "Button is pressed "
and if button 1 is unpressed = False, I want some mgs "Button is unpressed "
Even if Any button is already pressed, let's say button 2 is already pressed, it does not affect the other buttons' value
In this senario. I would prefer to use CASE structure "True" and "False". But I could not understand which value do i need to attched with Case structure.
Use the "new value of changed boolean" as shown by Altenbach.
Do you understand his example code?
09-25-2025 02:57 AM
Hi GerdW,
Before, I understood it incorrectly, but now I am clear.
Thank you for giving me the right direction.
Thank you to all who are involved in the conversion!
BR.