LassoScript Utility
Basics Browse Detail

[Proc_ForEach]

Tag Link [Proc_ForEach] Category Utility
Type Substitution Source Available No
Support Preferred Version 8.5.4
Change New Data Source Any
Output Type Any Security None
Implementation LassoScript Sets Lasso 8.5

Description

[Proc_ForEach] is used in the processor list of [SOAP_DefineTag] to specify what post-processing the results of the SOAP procedure should undergo. [Proc_ForEach] requires a tag reference or a block of code as a parameter. The code is run on each element in the array which is being processed. Called as (Proc_ForEach: { ... ; Return: True; }).

Syntax

[SOAP_DefineTag: ..., -Procs=(Array: (Proc_ForEach: { ... ; Return: True; }))]

Parameters

Required Parameters
Code The tag reference or block of code to run on each element.

Change Notes

This processor was added in Lasso 8.5.4

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.