Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if else
#14
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)