the forEach command is easy enough to use, once you have defined a group:
thegroup = group this
and then you put in "speech marks" the command, except using _x instead of a unit, like this:
"_x setdammage 1.0"
then, after that, you put forEach units thegroup, or you could have vehicles i think, or anything, it just means:
foreach: for every one of:
units: any units
in thegroup
so, you would end up with:
"_x setdammage 1.0" forEach units thegroup
hope you understand....