text words = "here's some text"
boolean bool = cast(boolean, words)
output bool
When running this in Quorum Studio you will get a cast error saying you can't convert the string to a boolean but when running this on the web it outputs false. The version on the web should probably also tell you that it's a cast error.
For this code here:
When running this in Quorum Studio you will get a cast error saying you can't convert the string to a boolean but when running this on the web it outputs false. The version on the web should probably also tell you that it's a cast error.