of     1   

cheese1495
#17579726Tuesday, December 08, 2009 7:27 PM GMT

I just want to know can you do more than 1 else this is the logic of what i want Random nomber(1,3) = i if i = 1 then Find Model 1 else if i = 2 then find Model 2 else if i = 3 then find model 3 else if i = a hole lode of rubbish then give up and go home (-: thanks
cheese1495
#17579735Tuesday, December 08, 2009 7:28 PM GMT

I MEANT NUMBER!
Vengroe
#17580178Tuesday, December 08, 2009 7:43 PM GMT

That's what elseif is for.
cheese1495
#17614307Wednesday, December 09, 2009 4:04 PM GMT

so i can?
gombob
#17614555Wednesday, December 09, 2009 4:19 PM GMT

i = math.random(1, 3) if i==1 then --blahblah elseif i==2 then --blahblah elseif i==3 then --again blah blah else --huh? end

    of     1