forEach: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Scripting Commands]] | [[Category:Scripting Commands|F]] | ||
[[Category:Scripting Commands OFP 1.97]] | [[Category:Scripting Commands OFP 1.97|F]] | ||
[[Category:Scripting Commands OFP 1.46]] | [[Category:Scripting Commands OFP 1.46|F]] | ||
[[Category:Scripting Commands ArmA]] | [[Category:Scripting Commands ArmA|F]] | ||
back to [[Scripting_Reference#F|COMREF]] | back to [[Scripting_Reference#F|COMREF]] |
Revision as of 17:38, 22 April 2006
back to COMREF
command forEach array
Operand types:
command: String
array: Array
Type of returned value:
Description:
Execute given command for each element of array.
It is executed as follows:
For each element of array assign element as _x and execute command.
Example:
"_x setDammage 1" forEach units group player