"""[_x] exec _script"" foreach [soldiera,soldierb]" foreach [scripta,scriptb]
close toadlife
First, with 1.85, the Gods of OFP have given us curly brackets {} to take the role of quotes, allowing us nesting without double quotes (which only give us one level of nesting anyway).
Second, in any foreach, _x represents the element in the array.
So, you want:
{_temp = _x; {[_x] exec _temp} ForEach [SoldierA, soldierB]} ForEach [scripta, scriptb]