{% set status_code = profile.statuscode|default(0) %} {% set interrupted = command_collector is same as false ? null : command_collector.interruptedBySignal %} {% set css_class = status_code == 113 or interrupted is not null ? 'status-warning' : status_code > 0 ? 'status-error' : 'status-success' %}