Skip to main content

Non-Iterable Variable

Erroneous Code Example

This error occurs when you try to use a non-iterable variable in an iteration context. In this example, the parameter name is not a collection, so it cannot be used in an iteration context.

Solution

Ensure variables used in iterations are collections or arrays.