from text(text)value Type: For any types t where Readable t(Text) -> t

Converts a value from text.

This function works for any readable type (the only non-readable types are function types). If the intended type cannot be inferred automatically, you may need to use the from text to(..) function to specify the type .

Some notes for specific types:

ExamplesClick an example to insert it
from text("65") > 64true
from text("TRUE") | falsetrue
as type(type{Date}, from text("21 March 2004"))date from ymd(2004{year}, 3{month}, 21{day})
as type(type{[(a: Boolean, b: Number{m})]}, from text("[(a:True, b:0), (a:FALSE, b:-1.6)]"))[(a:true, b:0{m}), (a:false, b:-1.6{m})]