Raildex
|
  |
| Joined: 06 Dec 2009 |
| Total Posts: 934 |
|
|
| 05 Apr 2016 11:16 AM |
| What i mean by this is create a way to fold completed code up like how it lets you close up if statements or functions |
|
|
| Report Abuse |
|
|
Cuyler
|
  |
| Joined: 27 Feb 2006 |
| Total Posts: 3784 |
|
|
| 05 Apr 2016 11:29 AM |
do --//New scope is created --//Code that can be folded is here end --//Scope ends
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 05 Apr 2016 11:31 AM |
I still don't understand what you mean
|
|
|
| Report Abuse |
|
|
|
| 05 Apr 2016 11:34 AM |
Yeah, press this little arrow things by the side of your code: https://gyazo.com/91fd5ac7b7ed17371acecbd464362539
|
|
|
| Report Abuse |
|
|
Cuyler
|
  |
| Joined: 27 Feb 2006 |
| Total Posts: 3784 |
|
|
| 05 Apr 2016 11:35 AM |
I think he was asking for a way to add new scopes without defining a function. Either that or he just wanted to know how to hide them.
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 05 Apr 2016 11:36 AM |
@Curley. I new to this entire "do something end" thing.
Whats the difference between
while something do end
and just
do something end
???
|
|
|
| Report Abuse |
|
|
Raildex
|
  |
| Joined: 06 Dec 2009 |
| Total Posts: 934 |
|
|
| 05 Apr 2016 11:37 AM |
| what Cuyler said^ I want to keep my code more organized |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 05 Apr 2016 11:37 AM |
"do [code] end" makes a block
everything else is just an extension of that with extra functionality |
|
|
| Report Abuse |
|
|
|
| 05 Apr 2016 12:39 PM |
Why not just indent it? This is often what I do when declaring lots of variables: https://gyazo.com/95d3a9541dc8eea0d08e86249113df2b
|
|
|
| Report Abuse |
|
|