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: String to boolean

Previous Thread :: Next Thread 
TwoRivers is not online. TwoRivers
Joined: 25 Aug 2011
Total Posts: 2821
11 Sep 2015 05:29 PM
pls


-TwoRivers/Iterum/100+ accounts
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
11 Sep 2015 05:30 PM
whaat? like
local true = string:match("True")
Report Abuse
lordrambo is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. TwoRivers
Joined: 25 Aug 2011
Total Posts: 2821
11 Sep 2015 05:34 PM
y no tobool()


-TwoRivers/Iterum/100+ accounts
Report Abuse
lordrambo is not online. 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
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
11 Sep 2015 05:52 PM
lol
Report Abuse
rayk999 is not online. 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
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