menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
How come a if doesn't work in a for function?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
How come a if doesn't work in a for function?
NuclearBlender
Join Date: 2013-03-26
Post Count: 1799
#95242045
Thursday, April 18, 2013 10:22 PM GMT
For example for i = 1,#Blah do if Blah[i].Name == "Hi" then Blah[i].Name = "Hahahah that if is pointless cuz it still passe sno matr wut'" end wait() end Everything seems to pass the if.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
NuclearBlender
Join Date: 2013-03-26
Post Count: 1799
#95242738
Thursday, April 18, 2013 10:29 PM GMT
halp
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
buddy249950
Join Date: 2016-06-30
Post Count: 3536
#95242923
Thursday, April 18, 2013 10:31 PM GMT
That made no sense. Please rephrase that.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
NuclearBlender
Join Date: 2013-03-26
Post Count: 1799
#95243118
Thursday, April 18, 2013 10:33 PM GMT
I don't get it either, everything seems to pass an 'if' function if it is in a 'for' statement
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
notsopwnedg
Join Date: 2010-11-07
Post Count: 4182
#95243366
Thursday, April 18, 2013 10:35 PM GMT
There is no problem's with if statements in for loops...It's not running because the condition is false...
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
[rfa#hidefromsearch]
Join Date: 0001-01-01
Post Count: 0
#95243443
Thursday, April 18, 2013 10:36 PM GMT
[rfa#hidefromsearch]
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right