def mosel_bool(value: bool):
    """
    In a Mosel HTTP server with a request which contains query parameters:

    declarations
        hidden: boolean
    end-declarations

    initializations from reqfile
        hidden
    end-initializations

    The conversion seems to be precisely "true" -> true and everything else is mapped to false.

    Since Python bool have an upper-case letter (True/False) we must convert for Mosel to
    correctly extract the value.
    """
    return 'true' if value else 'false'
