[source,vbnet] ---- Public Function GetReadableStatus(job As Job) As String If job.IsRunning Then Return "Running" Return If(job.HasErrors, "Failed", "Succeeded") End Function ----