Sales: dataon_sales@dataonstorage.com     |     Tech Support: Please visit our support portal     |     Office Support Hours: M-F 9:00AM ~ 6:00PM (PST)
Title
Contact Us
Sales: 888.726.8588

NMC 'foreach' primitive is yet another enhancement to quickly create high-power custom scripts, or simply execute any number of NMC commands in a loop.

The outline of NMC 'foreach' loop follows below:

 nmc$ foreach var (value1, value, ...)
(f)nmc$ some-command
(f)nmc$ other-command
...
...
(f)nmc$ endfor

The 'foreach' line (above) indicates the beginning of the special 'foreach' mode. Active 'foreach' mode is denoted by (f) in the NMC prompt. While in this mode, all commands are collected for future execution - in a loop. The 'endfor' primitive indicates and end of the 'foreach' mode and triggers execution of all commands, for all values of the iterator. In the outline above, the iterator would be "var", and its values: value1, value2, etc.

 

For details and examples, please see:

nmc$ foreach -h 
 

Your are currently browsing this site with Internet Explorer 6 (IE6).

Your current web browser must be updated to version 7 of Internet Explorer (IE7) to take advantage of all of template's capabilities.

Why should I upgrade to Internet Explorer 7? Microsoft has redesigned Internet Explorer from the ground up, with better security, new capabilities, and a whole new interface. Many changes resulted from the feedback of millions of users who tested prerelease versions of the new browser. The most compelling reason to upgrade is the improved security. The Internet of today is not the Internet of five years ago. There are dangers that simply didn't exist back in 2001, when Internet Explorer 6 was released to the world. Internet Explorer 7 makes surfing the web fundamentally safer by offering greater protection against viruses, spyware, and other online risks.

Get free downloads for Internet Explorer 7, including recommended updates as they become available. To download Internet Explorer 7 in the language of your choice, please visit the Internet Explorer 7 worldwide page.