Else or Else if?
#4

Like this.....

r = random(2);
if(r == 0) { }
else { } // r = 1

use elseif when.....

r = random(3);
if(r == 0) {}
else if(r == 1) {}
else {} // r = 2
Reply


Messages In This Thread
Else or Else if? - by Blackazur - 13.03.2013, 21:18
Re: Else or Else if? - by Misiur - 13.03.2013, 21:21
AW: Else or Else if? - by Blackazur - 13.03.2013, 21:23
Re: Else or Else if? - by Pottus - 13.03.2013, 21:25
Re: Else or Else if? - by Misiur - 13.03.2013, 21:27
AW: Else or Else if? - by Blackazur - 13.03.2013, 21:32
Re: Else or Else if? - by Misiur - 13.03.2013, 21:34
Re: Else or Else if? - by mastermax7777 - 13.03.2013, 21:37

Forum Jump:


Users browsing this thread: 1 Guest(s)