Re: OR Two Values...

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

Hello Ck,

  The following code worked fine for me, perhaps you are
overlooking something in your actual code.


-----------------------------------------START Eu code
include get.e

atom ink
sequence posxy

posxy = { (1=1) , (1=2) }

function someName( sequence posxy )
        return or_bits( posxy[1] , posxy[2] )
end function


?someName(posxy)  --prints a "1"

ink=wait_key()

-----------------------------------------END EU code


--Al

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

Search



Quick Links

User menu

Not signed in.

Misc Menu