Reorganize define section?


#1

@ady624 Would it be possible for you to allow reorganization of the Define section like we can do for If statements, etc?

Currently, the define section goes in the order that variable is added/removed.

Use case: I’d like to organize the Define section to have a set of configuration variables to direct users to, then a set of variables that I am just initiating for use throughout the piston but that the user doesn’t need to modify values to for functionality. I’d like to add a comment to the first desired user configurable variable “-- User Configuration Section --” and one for the first variable that I am initializing for piston usage that the user shouldn’t modify “-- Do not edit below --”.
I’ve created a piston with this in mind, but then needed to add a couple more user configured variables but now they are below the “-- Do not edit below --” comment and I cannot move them up to the “-- User Configuration Section --”


Add ability to re-order variables
#2

It is possible, others asked for it too, including me, just never got around to doing it. Will do.


#3

Reordering of local variables has been released in v0.3.105.20180628