Skip to content

EASY question HELP !

crest dubua

Asked May 19, 2008, 8:43 AM EDT2 answers
Share
LinkedInX

Can anyone tell me what is the keyword that translates 'OR'

instance :

if x=3   OR    x=5

I am sure you can tell me the right way to write the LINE above ! ['OR'  of course is wrong].

thanks.

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0

    Two pipeline symbols:  "||"

    a || b

    0
  • Niradhip Chakraborty
    0
    if (x = = 3 || x  = = 5)
       {
           Your code.
       }
    0