I'm embarrassed to even ask this one, because it seems so simple, but I have been getting jammed up on it for at least 30 minutes.
I have a little piece of code that is checking a list of files for the presense of a string, and if that string is present, then I put it into a variable called lPrimaryAcct. If that string isn't present, the file goes into a variable called lDelegateAcct. It is apart of my logic to determine which account is the main/default account in Outlook.
Code: Select all
//Loop to match OST file to config file
repeat for each line tOSTFile in tOSTList
//Set the primary account if there is match
if tConfigList contains tOSTFile then
put tOSTFile into lPrimaryAcct
else
--Classify any other accounts as Delegate accounts
put tOSTFile after lDelegateAcct
end if
end repeat
Code: Select all
//Loop to match OST file to config file
repeat for each line tOSTFile in tOSTList
//Set the primary account if there is match
if tConfigList contains tOSTFile then
put tOSTFile into lPrimaryAcct
else if tConfigList does not contain tOSTFile then
--Classify any other accounts as Delegate accounts
put tOSTFile after lDelegateAcct
end if
end repeat