forin Tag
Purpose: The forin tag is used to process all fields of an object or all characters of a string. First, the Variable is evaluated and must result in an object or a string. Then, the Expression is evaluated which must result in a variable to which the current index of the object field or position of the string is assigned. Through the assignment, the type of the variable becomes integer. For each object field or string character the body of the loop is executed. An optional forsep section can be specified which is executed between two object fields or string characters. The forsep section is not executed after the last object field or string character. Example:
Selected blog articles : 3D Objects on HTML pages, CSS Transition Visibility, and CSS Transition Display. © 1996-2025 H.E.I. All Rights Reserved. |
![]() |