Results 1 to 2 of 2

Thread: And or etc..

  1. #1

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    And or etc..

    How do i use and, or, and other things inside an if statement?

    i think its || and && but i cant get it working:
    PHP Code:
    if (($i%== 0)||($i != 0)){ 

  2. #2
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: And or etc..

    Quote Originally Posted by |2eM!x
    How do i use and, or, and other things inside an if statement?

    i think its || and && but i cant get it working:
    PHP Code:
    if (($i%== 0)||($i != 0)){ 
    it is right ( || and && ), what error did you have?

    if you've tried working in C or Java they all look the same it should work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width