...
Info | ||
---|---|---|
| ||
In the node pico engine, the |
You can have more than one loop in a rule by simply nesting one foreach
inside another:
...
As we’ve seen, foreach
causes the same rule to be fired multiple times in a single ruleset evaluation. Some actions are better suited to use inside a foreach
loop than others. For example, issuing multiple redirect()
actions from a single rule doesn’t usually make sense. But other actions like append()
, replace()
, send_directive()
, and so on are often done over and over with different data. An example illustrates this idea.
...