Article View: demon.tech.amiga
Article #531Re: Arexx Again
From: A.P. Suggitt
Date: Sun, 05 Mar 2000 00:00
Date: Sun, 05 Mar 2000 00:00
29 lines
1525 bytes
1525 bytes
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?
>
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.
peter
--
(.)(.) Peter Suggitt <peter@apsayton.demon.co.uk> | Suggitt's Ices
^^ Warped A4000 -- "Multimedia by design" | Great Ayton
+__+ | North Yorkshire
Scumvermin Rule OK!
Technical Details
Message-ID:
<20000305.8AE5B18.81C6@nospam.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<mC.4C.c62nI4QdY64528955.NR@bh01.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1160fd,370c0c3eb2c4a678,start X-Google-Attributes: gid1160fd,public From: SSS-900-C@nospam.demon.co.uk (A.P. Suggitt) Subject: Re: Arexx Again Date: 2000/03/05 Message-ID: <20000305.8AE5B18.81C6@nospam.demon.co.uk> X-Deja-AN: 593352402 X-NNTP-Posting-Host: apsayton.demon.co.uk:158.152.136.32 References: <mC.4C.c62nI4QdY64528955.NR@bh01.demon.co.uk> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 952246611 nnrp-14:8923 NO-IDENT apsayton.demon.co.uk:158.152.136.32 Organization: Suggitts Ices Great Ayton Reply-To: peter@apsayton.demon.co.uk Newsgroups: demon.tech.amiga