|
| 04 Mar 2013 10:17 AM |
local t = {"pie = 100", "pie doesnt = 100"}
pie = 100
if pie == 100 then
print(t[1])
else
print(t[2])
end |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Mar 2013 10:55 AM |
| And that's why you should get out. Why are you telling advanced scripters the most basic of the scripting language? |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 04 Mar 2013 11:55 AM |
Real men use logical operators when they can.
local t = {"pie = 100", "pie doesnt = 100"}
pie = 100
print(pie == 100 and t[1] or t[2])
|
|
|
| Report Abuse |
|
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
|
| 04 Mar 2013 12:12 PM |
@thedestroyer The problem with the post you made is that you're not an advanced scripter yourself. |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 04 Mar 2013 12:16 PM |
@Tenal Neither are you.
- DrHaximoose |
|
|
| Report Abuse |
|
|
| |
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
| |
|
Tr0ub4dor
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 200 |
|
|
| 04 Mar 2013 02:51 PM |
more efficient code: `print("pie = 100")`
^ does the same thing |
|
|
| Report Abuse |
|
|
Vrakner
|
  |
| Joined: 19 Feb 2013 |
| Total Posts: 323 |
|
|
| 04 Mar 2013 02:53 PM |
| Tenal, Destroyer IS an experienced scripter. So, GET OUT. |
|
|
| Report Abuse |
|
|
ThePC8110
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 486 |
|
|
| 04 Mar 2013 02:55 PM |
print( ({"Make advanced posts", "Learn more things", "Don't make pointless posts?"})[math.random(1,3)] )
That should keep you entertained c: |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 04 Mar 2013 03:04 PM |
A fellow RTer/Scripter.
~ ROBERT00001 ~ ~(ಠωಠ)~ |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2013 03:06 PM |
| I have never seen you before. |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 04 Mar 2013 03:09 PM |
Robertttttttt ;D
Ignore thedest, he hasn't been here very long ;D |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2013 03:12 PM |
As soon as I saw your name, I thought you'd same something like: "OGM ur back!1!11!"
~ ROBERT00001 ~ ~(ಠωಠ)~ |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 04 Mar 2013 03:14 PM |
| Naw I saw you before and I know you have been online, but not here, in this forum. :> |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
|
| 04 Mar 2013 03:57 PM |
I love how thedestroyer doesn't know who an original like him is. all the more proof that he doesn't belong here~ |
|
|
| Report Abuse |
|
|
129K
|
  |
| Joined: 23 Aug 2011 |
| Total Posts: 19010 |
|
|
| 04 Mar 2013 04:03 PM |
"all the more proof that he doesn't belong here~"
lelele |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 04 Mar 2013 04:04 PM |
@tenal >I love how thedestroyer doesn't know who an original like him is. Unless I'm reading this incorrectly, you are stating, "I love how thedestroyer doesn't know who an original like thedestroyer is." That is quite a contradiction, considering you seem to be torn between being a girl on the internet and a guy in real life. |
|
|
| Report Abuse |
|
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
Vrakner
|
  |
| Joined: 19 Feb 2013 |
| Total Posts: 323 |
|
| |
|