Article View: demon.tech.amiga
Article #532Re: Arexx Again
From: Terrance Richard Boyes
Date: Sun, 05 Mar 2000 00:00
Date: Sun, 05 Mar 2000 00:00
55 lines
2534 bytes
2534 bytes
A.P. Suggitt <SSS-900-C@nospam.demon.co.uk> wrote:
> Stephen Bridges (newsreply@bh01.demon.co.uk) wrote:
>> Hi All,
>>
>> Does anyone know a good way of checking if numbers in an Arexx script
>> are equal?
>>
>> If I have a script and in it are;
>>
>> uin.1 = 12
>> uin.2 = 25343
>> uin.3 = 35647
>> uin.4 = 23
>> uin.5 = 12
>>
>> Do I have to go tho' the old "does 1=2 1=3 1=4 etc" business or is there
>> a function that does it already?
Perhaps the question could be rephrased, it could currently mean
several things ! However you could consider both of
/* */
do x = 1 to 5
if uin.x = otheruin.x then
say 'match'
end
/* */
/* */
uin.12 = 1
uin.25343 = 1
uin.35647 = 1
uin.4 = 1
newvalue = 12
if uin.newvalue = 1 then
say 'already matched'
/* */
> 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.
--
<URL:http://www.pierrot.co.uk/> Team AMIGA
All the world is full of suffering, it is also full of overcoming it.
- Helen Keller
Technical Details
Message-ID:
<20000305.195739.C2984023.koaa@pierrot.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<mC.4C.c62nI4QdY64528955.NR@bh01.demon.co.uk> <20000305.8AE5B18.81C6@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/05 Message-ID: <20000305.195739.C2984023.koaa@pierrot.co.uk> X-Deja-AN: 593522993 X-PGP-Fingerprint: 20 66 0F E8 85 64 9C 2C 6F 82 6F 19 6C 2F 6A 1D X-Cancel-Lock: TEZT:167f6cae35e04a128363b73b0deacce6 a28e9cf30edc38b59a9ca8131f7c5d3d 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> X-PGP-Auth: pub 512/3A14C4B9 1999/04/22 Tez Boyes <tez@pierrot.co.uk> iQBVAwUBOMK8OEXush46FMS5AQGdUgIAr5hm2bzI8CTTFtP9x9AqA628SwAALlIi k61BrC6CHhjIcn3vdQ/22l+dVP5XWtFnxV7s/NG8lQWyDRMv8334Mg== =wao3 X-NaMLServ: $VER: v0.9b <tez@pierrot.co.uk> X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!rhenium.btinternet.com!host213-1-161-30.btinternet.com!pierrot.co.uk!tez@pierrot.co.uk X-Trace: mail2news.demon.co.uk 952286274 mail2news:20506 mail2news mail2news.demon.co.uk Organization: ECL.Net User-Agent: tin/pre-1.4-980618 (AMIGA) X-Lan-Trace: news.pierrot.lan 20000305.195739 news:koaa IDENT tez@btinternet.com Newsgroups: demon.tech.amiga