PDA

Click to See Complete Forum and Search --> : And or etc..


|2eM!x
Nov 17th, 2005, 07:28 PM
How do i use and, or, and other things inside an if statement?

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

oceanebelle
Nov 17th, 2005, 10:10 PM
How do i use and, or, and other things inside an if statement?

i think its || and && but i cant get it working:
if (($i%4 == 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.