forEachReversed

From Bohemia Interactive Community
Revision as of 10:00, 2 April 2023 by R3vo (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.14 |branch= dev |gr1= Arrays |descr= Interates over given array from last index to first index. |s1= code {{subst:PAGENAMEE...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.14.

Description

Description:
Interates over given array from last index to first index.
Groups:
Arrays

Syntax

Syntax:
code forEachReversed array
Parameters:
code: Code - Code applied to each array entry
array: Array - The array to iterate over
Return Value:
Anything - Will return the value of last executed statement

Examples

Example 1:
{ if (isNull _x) then { _array deleteAt _forEachIndex }; } forEachReverse _array;

Additional Information

See also:
forEachIndex

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note