Lasso Soft Inc. > Home

[ loop_value ]

Method

[loop_value] returns the value of the current value within an [iterate] container.

Within the container, [loop_value] can be modified, however the source object within the iterated object remains unmodified.

  • Syntax
iterate(source)
     loop_value
/iterate
Examples
  • Beginner

To return the current value of an array within an iterate container

Use the [loop_value] method.

Code

local(x = array(1,2,3,4,5,6,7,8,9,10))

iterate(#x) => {^ loop_value + ',' ^}

Result

1,2,3,4,5,6,7,8,9,10,

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft