Jump to content
UBot Underground

[Idea] Cloned Variables Inside Of Code Snippets.


Recommended Posts

I have 2 functions inside 2 bits of code that I want to be the same. For example I want my next list item of BOX, now rather than having to go back and edit both I want to link the contents of each. I propose a small box that initiates link, then you go find the other bit of code, link the two, and from now on all content on the inside is cloned between the two

Link to post
Share on other sites
  • 6 months later...

oh wait! I could put a variable into each one, and make the code I want inside of the thing as the variable.

 

Yes updating a global variable will change it everywhere (it is used later). If you change the variable and then read it later in multiple places it will be the same (until it is changed again).

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...