Button click first time and second time

Hi community!

I need to do something simple:

  1. If I click button1 for the first time, set visible true one label.

  2. If I click again the button1 (secon time), set visible false the label.

I don’t know how to do the step 2. I can’t found it. Someone can help me?

Thanks :smiley:

Initiate a variable and make it 0 (zero).

On click of button add +1 to the variable.

When variable = 1, set.label.visible=true
When variable = 2, set.label.visible=false
Set.variable=0

1 Like

Perfect, now it works how I wanted.

Lots of thanks plantdoc2018 :smiling_face_with_three_hearts:

1 Like

Why make an easy thing so difficult

bild

/Boban

10 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.