Skip to main content

mbr_forloop

Usage

This shortcode performs a set of repetitive actions a fixed number of times, similar to a programming FOR…TO…NEXT loop.

Note

The internal variable placeholder <:forloop:> has an integer value incremented at each iteration.

Please consider the effect a large number of iterations could have on the performance of your site.

Parameters

ParametersDescription
timesThe number of iterations to be performed.
Default: none.
Required: yes.

Validity

This shortcode is evaluated for any type of visitor.

Conditional Branching

This shortcode does NOT support conditional branching with [ELSE_forloop].

Nesting

Shortcode nesting within is NOT supported.

Examples

All actions between the shortcode tags will be performed 3 times. So the following will be displayed "Going through the loop for the 1 time.", "Going through the loop for the 2 time.", "Going through the loop for the 3 time." The internal variable placeholder <:forloop:> has an integer value incremented at each iteration:

[mbr_forloop times='3']
Going through the loop for the <:forloop:> time.
[/mbr_forloop]

API

Note

There is currently no ActiveMember360 API function equivalent for this shortcode.