comapring seqeunces

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

------=_NextPart_000_0007_01C03B89.0E3226E0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Is there a way to compare 2 objects .like so:

object pfsong,ledzepsong

pfsong=3D{"money, it's a gas",
          "grab that cash      ",
          "with both hands    " ,
          "and make a stash"}
=20
ledzepsong=3D{"theres a lady in short",
                    "all that glitters is gold",
                    "and she's buying a    ",
                    "stairway to heaven....."

compare(pfsong,ledzepsong)

What I really looking for is to check if an object that is more than one =
line long is "empty" or not, something like:

if pfsong=3D0 then
puts(1,"nothing in it")
end if

Thanksssss

AuRevioior
----->Thomas


--------/\=3D=3D=3D

all you create and all you destroy, all that you light and evr'yone you =
fight, and everything under the suin is in tune, but the sun is =
ecllipsed by the moon..............

------=_NextPart_000_0007_01C03B89.0E3226E0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Is there a way to compare =
2&nbsp;objects .like=20
so:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>object pfsong,ledzepsong</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>pfsong=3D{"money, it's a =
gas",</FONT></DIV>
<DIV><FONT face=3DArial=20
b that=20
<DIV><FONT face=3DArial=20
h both=20
hands&nbsp;&nbsp;&nbsp; "&nbsp;,</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "and =
make a=20
stash"}<BR>&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ledzepsong=3D{"theres a lady in =
short",</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "all that =
glitters is=20
gold",</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "and she's =
buying=20
a&nbsp;&nbsp;&nbsp;&nbsp;",</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "stairway to=20
heaven....."</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>compare(pfsong,ledzepsong)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What I really looking for is to check =
if an object=20
that is more than one line long is "empty" or not, something =
like:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>if pfsong=3D0 then</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>puts(1,"nothing in it")</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>end if</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanksssss</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>AuRevioior</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-----&gt;Thomas</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>--------/\=3D=3D=3D</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><EM>all you create and all you destroy, =
all that=20
you light and evr'yone you fight, and everything under the suin is in =
tune, but=20
the sun is ecllipsed by the =

------=_NextPart_000_0007_01C03B89.0E3226E0--

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

Search



Quick Links

User menu

Not signed in.

Misc Menu