How to compare $arg0 with string literal?

Aleksey Midenkov <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAF8BazAOQC-otNoogUc92mnjoxJwt8R166tx0=7JX04qFks_+g@mail.gmail.com>
F.ex.

define logging
    if $argc == 1
        if $arg0 == off
            set logging off
            set logging file gdb.log
        else if $arg0 == stop
            set logging off
        else
            set logging $arg0
        end
    else
        set logging $arg0 $arg1
    end
    show logging
end

When type 'logging off' I get error about no such symbol 'off'...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.