(
if it != "Unknown" then it else
(
if
(
exists
(
unique values of
(
it as string as trimmed string
)
whose
(
it != ""
)
of values "sbds_device_chemistry" of structures "portable_battery" of smbios
)
)
then
(
unique values of
(
it as string as trimmed string
)
whose
(
it != ""
)
of values "sbds_device_chemistry" of structures "portable_battery" of smbios
)
else "Unknown"
)
)
of unique values of
(
if exists it then it else "Unknown"
)
of
(
tuple string items
(
(
it as string as trimmed string as integer
)
of values "device_chemistry" of structures "portable_battery" of smbios
)
of "Unknown, Other, Unknown, Lead Acid, NiCad, NiMH, LION, Zinc Air, LiP"
)
(if it != "Unknown" then it else ( if (exists (unique values of (it as string as trimmed string) whose(it != "") of values "sbds_device_chemistry" of structures "portable_battery" of smbios)) then (unique values of (it as string as trimmed string) whose(it != "") of values "sbds_device_chemistry" of structures "portable_battery" of smbios) else "Unknown" )) of unique values of ( if exists it then it else "Unknown" ) of (tuple string items ( (it as string as trimmed string as integer) of values "device_chemistry" of structures "portable_battery" of smbios ) of "Unknown, Other, Unknown, Lead Acid, NiCad, NiMH, LION, Zinc Air, LiP")