if
(
not exists
(
select objects "* from MSStorageDriver_FailurePredictStatus" of wmi "root\WMI"
)
whose
(
string value of property "PredictFailure" of it as boolean = TRUE
)
)
then "<no failures predicted>" else concatenation "," of
(
string value of property "PredictFailure" of it & " - " & string value of property "InstanceName" of it
)
of
(
select objects "* from MSStorageDriver_FailurePredictStatus" of wmi "root\WMI"
)
whose
(
string value of property "PredictFailure" of it as boolean = TRUE
)
if(not exists (select objects "* from MSStorageDriver_FailurePredictStatus" of wmi "root\WMI") whose(string value of property "PredictFailure" of it as boolean = TRUE)) then "<no failures predicted>" else concatenation "," of (string value of property "PredictFailure" of it & " - " & string value of property "InstanceName" of it) of (select objects "* from MSStorageDriver_FailurePredictStatus" of wmi "root\WMI") whose(string value of property "PredictFailure" of it as boolean = TRUE)