What Does "getSetVar" Do?
-
I never figured out how to use it.
-
It retrieves and sets a var at the same time. It retrieves the value that you set, so:
getSetVar("foo",1) = 1 -
@wacov said:
It retrieves and sets a var at the same time. It retrieves the value that you set, so:
getSetVar("foo",1) = 1An easier way to understand it i find is it retrieves the var and then resets it. So have an ontouch box that sets the variable to 1 normally with getvar it retrieves the variable and thats it. getsetvar when the box isn't being touched it resets the variable to 0. that probably made no sense but still
-
It can be useful for other stuff; I used it alot in the toggle script.
-
I think a setVar controlled magnet uses it to reset itself.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement