Boolean operations

"andrey" <[email protected]> Thu, 01 Dec 2011 13:51:14 -0000
Newsgroups gmane.comp.lang.io
Message-ID <[email protected]>
I am looking for boolean operations in Io.  I need to write something like this:

if (a == b) or (c == d) ....

Now I have created such code:

divided_by := method(a, b,
	a % b == 0
)

condition := method(a,
	if(divided_by(a, 3)) then (return true) else (
		if(divided_by(a, 5)) then (return true) else (return false)
	)
)

But I am looking for the better solution.