Help me please

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

Albert wrote:
>I want to do something like this but I am having troubles:

>sequence test
>test =3D gets(0)
-- The sequence that is typed here, ends with a newline character, so you=

have to
-- strip that off:
test =3D test[1..length(test) - 1]
>if (test =3D "albert") then   --  This is my prob.
-- no, you have to use compare():
if compare(test, "albert") =3D 0 then     -- ( '=3D 0' meaning no differe=
nce!)
    puts(1,"albert")
end if
-- now, this should work

>NOTE: This is just an example of what I want to do not my actual program=
=2E

>Thanks,
>Albert

Hope this helps, Ad

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

Search



Quick Links

User menu

Not signed in.

Misc Menu