TwoRivers
|
  |
| Joined: 25 Aug 2011 |
| Total Posts: 2821 |
|
|
| 11 Sep 2015 05:29 PM |
pls
-TwoRivers/Iterum/100+ accounts |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 05:30 PM |
whaat? like local true = string:match("True") |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 11 Sep 2015 05:30 PM |
bool = ((string == "true") and true or false)
assuming only "true" is true and everything else (including True) is false |
|
|
| Report Abuse |
|
|
76km
|
  |
| Joined: 14 Aug 2015 |
| Total Posts: 5455 |
|
|
| 11 Sep 2015 05:31 PM |
if string.Value = "value" then bool.Value = true end |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 11 Sep 2015 05:32 PM |
woah whoops I said something really dumb
bool = string == "true"
|
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 11 Sep 2015 05:34 PM |
Yep
str == "true"
Is the way.
Muad'Dib |
|
|
| Report Abuse |
|
|
TwoRivers
|
  |
| Joined: 25 Aug 2011 |
| Total Posts: 2821 |
|
|
| 11 Sep 2015 05:34 PM |
y no tobool()
-TwoRivers/Iterum/100+ accounts |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 11 Sep 2015 05:37 PM |
I already knew this was a troll to see how many over complicated solutions would appear btw Now you play your last card, "tobool()". |
|
|
| Report Abuse |
|
|
| |
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 11 Sep 2015 05:53 PM |
Um, that function is case-sensitive
toBool() is correct
"You're all idiots" |
|
|
| Report Abuse |
|
|