cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnjohn123
Super User
Super User

Is there any harm if i Set variable multiple times

I have a general question, if i can set a variable at multiple places:-

 

for example when OnSelect a button >> Set(VarA,true)

 

OnSuccess of the form >> Ser (VarA,false)

 

is this fine? or the variable should be set one time and used many?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

@johnjohn123 

No, there's no harm in setting the same variable in multiple places.

It's common practice to do this.

View solution in original post

1 REPLY 1
timl
Super User
Super User

@johnjohn123 

No, there's no harm in setting the same variable in multiple places.

It's common practice to do this.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,094)