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

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu