Re: Questions from a Beginner.

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

First of all, you cannot make a sequence {E,0,0}.

If you put single quotes around the 'E' then you can make a sequence, which is exactly the same as {69,0,0}

sequence s1,s2 
s1 = {'E',0,0} 
s2 = {{70,0,0},{69,0,0},{68,0,0}} 
 
if equal(s1,s2[2]) then 
        puts(1,"They are equal\n") 
else 
        puts(1,"They are not equal\n") 
end if 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu