+ Start a Discussion
Shwetal DesaiShwetal Desai 

Convert String to boolean

Is it possible to convert 'true' or 'false' to boolean true / false?
if yes then how can i do this?

Thanks in advance
Try Boolean.valueOf() method..
Shwetal DesaiShwetal Desai
Tried that one.. its not working......
Shwetal -

I think you want to go from "true" or "false" to a boolean, not the other way around, right?  You should be able to do that with a trigger to set a boolean field based on the string value.

Hope this helps.