04-02-2007, 06:52 PM
if x equals 1, then the else will kick in with that code.
if x < 1
do this
else
do that
If x equals 1, then it will "do that". if you want "do this" executed on x equalling 1, then you need to change the code to:
if x <= 1
do this
else
do that
if x < 1
do this
else
do that
If x equals 1, then it will "do that". if you want "do this" executed on x equalling 1, then you need to change the code to:
if x <= 1
do this
else
do that
