{%
    if option == 'InvalidService' then
        echo("Invalid service name.")
    else
        if option == 'SSH' and state == 'enabled' and AuthenticationEnabled == true then
            echo('Set SSH service state enabled failed.\r\nSSH and two-factor authentication cannot be enabled at the same time.')
        elseif (option == 'KVMIP' or option == 'VNC' or option == 'VirtualMedia' or option == 'Video' or option == 'SNMP') and IsMultihost == 'Multihost' then
            echo("Invalid service name.")
        else
            echo(string.format('Set %s service state %s successfully.', option, state))
        end
    end
%}