@Aliza24102002 wrote:
Thank you everybody for helping! Really means a lot!
I got the solution when i pushed my brain a little that also without using property node and also not compromising on GUI.
This is definitely not a "solution" to your original problem, because instead of disabling a subset of array elements you are resizing the array. So if you have an array with values, the values of the elements above your new lower limit will be irreversibly lost and won't reappear if you later increase the number again. Maybe that's OK, maybe not...
In your original program descriptions, you were trying to operate on properties, now you are operating on values. Big difference!!!
(Also note that autoindexing as others suggested would not work here, because you would not be able to grow the array ever again by increasing the size.)
In any case, here's the correct way to resize an existing array by either truncating or padding with zeroes. No loop needed. Fits on a postage stamp! Try it!