Whats the frequency of the letter s in:
Q: Does rsyslog configuration support case statement? Does rsyslog support case statement similar to C?
switch ($programname)
​{
    case nginx:
        // code to be executed if n is equal to constant2;
        break;
    case java:
        // code to be executed if n is equal to constant2;
        break;
        ...
    default:
        // code to be executed if n doesnt match any constant
       break;
}

I know that same effect can be achieved by if..else if..else statement.

A: No, it doesnt, as you can easily learn yourself: 
https://www.rsyslog.com/doc/v8-stable/rainerscript/control_structures.html

user
The text includes thirty-seven "s"s in total.
assistant