1. Re: [If/then and sequences...]

On Mon, 28 Aug 2000, you wrote:
> LEVIATHAN <leviathan at USWEST.NET> wrote:
> >>I've got to compare a object against another sequence (if buffer[1] =
> >>"//ammo" then ...)
>
> If I am not mistaken (I may be wrong, I haven't done much Euphoria programming
> lately), you must use:
>
>    compare(buffer[1], "//ammo")
>
> or was it?:
>
>    equal(buffer[1], "//ammo")
>
> The function being used will return a 1 or 0 depending on whether they are
> equal. So effectivly, you would do "if compare(buffer[1],"//ammo") = 1" to
> find out if it was equal.
>
> Again, I am not 100% sure. Somebody correct me if I am wrong.
>
> ~mark nenadov
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
compare returns 0 if the arguments are equal, -1 if the first is greatest, or 1
if the second is greatest. equal just returns 0 if they are not equal, 1 if
they are.

Jeff

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu