public/swaggerui/swagger-ui.js
function parseIfStatement(node) {
        var test, consequent, alternate;

        expectKeyword('if');

        expect('(');

        test = parseExpression();

        expect(')');

        consequent = parseStatement();

        if (matchKeyword('else')) {
            lex();
            alternate = parseStatement();
        } else {
            alternate = null;
        }

        return node.finishIfStatement(test, consequent, alternate);
    }
function parseIfStatement(node) {
        var test, consequent, alternate;

        expectKeyword('if');

        expect('(');

        test = parseExpression();

        expect(')');

        consequent = parseStatement();

        if (matchKeyword('else')) {
            lex();
            alternate = parseStatement();
        } else {
            alternate = null;
        }

        return node.finishIfStatement(test, consequent, alternate);
    }
function parseIfStatement ( node ) { var test , consequent , alternate ; expectKeyword ( 'if' ) ; expect ( '(' ) ; test = parseExpression ( ) ; expect ( ')' ) ; consequent = parseStatement ( ) ; if ( matchKeyword ( 'else' ) ) { lex ( ) ; alternate = parseStatement ( ) ; } else { alternate = null ; } return node . finishIfStatement ( test , consequent , alternate ) ; }
ECMA-262 13.6 If statement
ECMA - 262 13 . 6 If statement