From: Phrogz Date: 2007-11-23T13:20:00+09:00 Subject: Re: operators in ruby On Nov 22, 8:26 pm, Martin Durai wrote: > How to use logical operators in ruby? > > Logical AND, OR, NOT.. > > In other languages like java &&, ||, ! is used. how we have to use it in > ruby. > > A sample code in java, please explain it in ruby. > > if((namespace == attributeUri[ i ] || > namespace.equals(attributeUri[ i ]) ) > && name.equals(attributeName[ i ]) ) > > Please do the same in ruby Martin, please read a primer on Ruby and Java before posting all your questions asking people to do each piece of your work for you. It seems that you have a project or job to convert something from Java to Ruby, but you don't seem to know either. Learn the languages - even the basics - and you'll be able to do this better on your own.