🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.tech.amiga
Article #535

Re: Arexx Again

#535
From: Terrance Richard Boyes
Date: Tue, 07 Mar 2000 00:00
36 lines
2436 bytes
A.P. Suggitt <SSS-900-C@nospam.demon.co.uk> wrote:
> Terrance Richard Boyes (tez@pierrot.co.uk) wrote:
>> A.P. Suggitt <SSS-900-C@nospam.demon.co.uk> wrote:
>> 
>> > To check if a variable is a specific value use double equal
>> > signs "==" in the If expression. If you want to do different
>> > functions for specific values check out the Select/When/Otherwise
>> > command.
>> 
>> Pardon ?
>> 
>> if a = b then
>>     blah
>> 
>> works fine.
>> 

> I may be getting my languages mixed up, in one language, after

C, awk (and probably Perl) for a start.

> this example a would be set to the value of b and the branch
> succeed so the '==' is used. As the ARexx handbook lists this as
> the EXACT operator that this is what was missing here. Wrong
> again no doubt.

On the whole in ARexx it does not matter whether you use = or ==
in a test, AFAIR the difference resolves around the use of spaces
in strings.

--


-- 
<URL:http://www.pierrot.co.uk/>                                  Team AMIGA
Field theories, unite!
Technical Details
Message-ID: <20000307.223855.C2984023.uUaa@pierrot.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <mC.4C.c62nI4QdY64528955.NR@bh01.demon.co.uk> <20000305.8AE5B18.81C6@nospam.demon.co.uk> <20000305.195739.C2984023.koaa@pierrot.co.uk> <20000307.8AE6D60.12873@nospam.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1160fd,370c0c3eb2c4a678
X-Google-Attributes: gid1160fd,public
From: tez@pierrot.co.uk (Terrance Richard Boyes)
Subject: Re: Arexx Again
Date: 2000/03/07
Message-ID: <20000307.223855.C2984023.uUaa@pierrot.co.uk>
X-Deja-AN: 594452140
X-PGP-Fingerprint: 20 66 0F E8 85 64 9C 2C  6F 82 6F 19 6C 2F 6A 1D
X-Cancel-Lock: TEZT:3238da377d4857a29e3d068f16502be4 643e4760685df547caccd9c3cf81080b
X-PGP-Keyfile: <URL:http://www.pierrot.co.uk/pgpauth/>
References: <mC.4C.c62nI4QdY64528955.NR@bh01.demon.co.uk> <20000305.8AE5B18.81C6@nospam.demon.co.uk> <20000305.195739.C2984023.koaa@pierrot.co.uk> <20000307.8AE6D60.12873@nospam.demon.co.uk>
X-PGP-Auth: pub   512/3A14C4B9 1999/04/22 Tez Boyes <tez@pierrot.co.uk>    iQBVAwUBOMWFBEXush46FMS5AQE4PQH/VaWeLOnC6/UepbfxBBXjLObO3ZKI6n5d    F4pUIJYAS9l7dMMze2WSJ2zwbaSYkdACbjukr3xu0bqAoxQVRfczfw==    =fQSE
X-NaMLServ: $VER: v0.9b <tez@pierrot.co.uk>
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!gadolinium.btinternet.com!host62-6-79-134.btinternet.com!pierrot.co.uk!tez@pierrot.co.uk
X-Trace: mail2news.demon.co.uk 952468754 mail2news:23100 mail2news mail2news.demon.co.uk
Organization: ECL.Net
User-Agent: tin/pre-1.4-980618 (AMIGA)
X-Lan-Trace: news.pierrot.lan 20000307.223855 news:uUaa IDENT tez@btinternet.com
Newsgroups: demon.tech.amiga