Does this help:
https://keithga.wordpress.com/2014/04/18/listitem-processing-in-customsettin gs-ini-file/ From: [email protected] [mailto:[email protected]] On Behalf Of Miller, Todd Sent: Wednesday, May 27, 2015 1:29 PM To: [email protected] Subject: [MDT-OSD] Multi-value custom Settings I am having trouble finding an example of how to process multi-valued custom settings. I have two custom lists that will contain between 0 and several values. For example -- CustomSetting001, CustomSetting002, CustomSetting003. The values are set by SQL queries from CustomSettings.ini section [RSETTINGS]. When the computer is assigned to multiple roles, it might have multiple values for the custom setting, and I need to process each. Mostly, I need to figure out how to determine from a ZTI script how to COUNT the # values there are and then figure out how to access each value individually in a loop. In the example above, how would I know there are 3 values assigned, and how would I step through those values individually to perform an action on each. In general, I know what I am doing - just need a little help with these list/array type values. My google skills are letting me down. "List" and "MDT" is a bad google query because hundreds of web pages "list" the MDT standard variables. One idea I had was to just step through all the variables and take an action where the Left(variableName, 14) = "MyVariablename" But there is probably a more straightforward approach, right? _____ Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you. _____
