From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_05,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,18266fa31456a58 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: compare a string variable with a string literal Date: 1998/10/10 Message-ID: #1/1 X-Deja-AN: 399779331 Sender: matt@mheaney.ni.net References: NNTP-Posting-Date: Sat, 10 Oct 1998 15:02:11 PDT Newsgroups: comp.lang.ada Date: 1998-10-10T00:00:00+00:00 List-Id: "H�x�d��m�" writes: > How do you compare a string variable with a string literal?? It's not > working. Please a small code fragment. We can't help you if you don't post code. You compare string objects the same way you comare any other object - using the equality operator "=": procedure Test (S : in out String) is begin if S = "matt" then ... What's the problem?