generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: What's the difference?

Previous Thread :: Next Thread 
austin10111213 is not online. austin10111213
Joined: 27 Nov 2008
Total Posts: 363
21 Jun 2016 11:05 PM
Can someone please explain what would be different between these two codes

if condition then
--code
end

if condition do
-- code
end

Does it matter whether you use then or do?
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
21 Jun 2016 11:06 PM
one works one doesnt


r+://393244197r+://393244224r+://393244262
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
21 Jun 2016 11:06 PM
i dont think there is a difference, i could be wrong. i always use then though, i have never used do, even for advanced scripts.
Report Abuse
austin10111213 is not online. austin10111213
Joined: 27 Nov 2008
Total Posts: 363
21 Jun 2016 11:08 PM
I have always used then too, but i've seen scripts that use do. That's why I was wondering if there were cases where you were supposed to use one over the other or if it's just the scripters preference.
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
21 Jun 2016 11:09 PM
theres no such thing as "if condition do"


r+://393244197r+://393244224r+://393244262
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
21 Jun 2016 11:09 PM
i believe that then works all the time, and do only works some of the time. tbh i really dont know though.
Report Abuse
cntkillme1 is not online. cntkillme1
Joined: 16 Feb 2012
Total Posts: 592
21 Jun 2016 11:13 PM
"i believe that then works all the time, and do only works some of the time. tbh i really dont know though."
No, you don't.

You use THEN only with a condition statement
You us DO with loops or just to open a scope
Report Abuse
austin10111213 is not online. austin10111213
Joined: 27 Nov 2008
Total Posts: 363
21 Jun 2016 11:14 PM
Alright thanks for clearing that up.
Report Abuse
Iliuminatis is not online. Iliuminatis
Joined: 30 Nov 2008
Total Posts: 1524
22 Jun 2016 01:03 AM
omgeh tis is most misinformd thred i evr seen.

theres no if condition do. whoever says ther is is a troll.

there is if condition then. and for condition do.

if condition then is mostly used when sumthing hapend.

for condition do used when multiple things happen like numbers and so on.

u most likely wont ever use for condition do.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image