|
| 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 |
|
|
|
| 21 Jun 2016 11:06 PM |
one works one doesnt
r+://393244197r+://393244224r+://393244262 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 21 Jun 2016 11:09 PM |
theres no such thing as "if condition do"
r+://393244197r+://393244224r+://393244262 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 21 Jun 2016 11:14 PM |
| Alright thanks for clearing that up. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|