Possible to swap two C# vars with a button?

Login or Register

Please login or register in order to view and post in the Forum.

2 posts / 0 new
Last post
chrisw
Last seen: 2 years 2 months ago
Joined: 06/10/2019 - 20:31
Possible to swap two C# vars with a button?

Hi,

Is it possible to swap the values of two C# vars with a button? I figured I'd be able to run a little script off a button, but I can't see how to do it.

Thanks,

-Chris

0
cpayne
Last seen: 1 year 7 months ago
Joined: 03/30/2009 - 00:00
Set C#1 then C#2 to Swap

While there is no way to "swap" the values of two C# variables, you can add a button for each (or as many as you work with) as seen below, then simply click each button to set them to each others value.