So, based on the if…then…else statement, you’re only going to get the first matching result. Instead you need to get plural results. You can do this with by building a “set” of results on the fly by delimiting the clauses with semicolons. There’s also no need to force ‘x64 registry’ when you’re only looking beneath Wow6432Node. Try this -
- Get all of the SmartClientIDs
values "SmartClientIDs" of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Ellie Mae\SmartClient" of registry as string
- Transform the results based on your criteria. An If…Then…Else must return a result, but “nothing” is a valid (empty) plural result. If none of them match you’ll get an empty result rather than “No Encompass Found”
((if it starts with "te0000999999" then "Test-Sunset" else nothing); (if it starts with "te000000000" then "Test-NEW" else nothing); (if it starts with "b654321" then "CD and Wholesale" else nothing); (if it starts with "b123456" then "Assumptions" else nothing))of values "SmartClientIDs" of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Ellie Mae\SmartClient" of registry as string as lowercase