![]() ![]() String or number values are accepted as outlined for the String and Number overloads described earlier.Ĭonverts the text string "true" to a boolean value.Ĭonverts the text string "false" to a boolean value.Ĭonverts the text string "TRUE" to a boolean value.Ĭonverts the text string "TrUe" to a boolean value.Īttempts to convert the text string "Truthful" to a boolean value, but since it isn't a case insensitive variation of true and false, an error is returned.Ĭonvert the blank value to a boolean value.Ĭonvert the number -1234 to a boolean value.īoolean( ParseJSON( "" ).bool )Īttempts to convert the untyped value "true" (a JSON string) to a boolean value, but since it isn't a valid boolean value in JSON, an error is returned.Īttempts to convert an array of boolean values to a single column table. For JSON, JSON boolean values true, false, and null are accepted, corresponding to true, false, and blank values in Power Fx. Acceptable values are dependent on the untyped provider. blank values are accepted and converted to a blank. 0 is converted to false and all other numbers are converted to true. blank and empty string is also accepted and converted to a blank. Must be a case insensitive version of "true" or "false". The Boolean function is useful when an explicit conversion is desired or when using an untyped value. For example, If( "true", 1, 0 ) will return 1 as the text string "true" is automatically converted to a Boolean. In most cases, type coercion happens automatically and the Boolean function need not be used explicitly. A Boolean value is true, false, or blank. Use the Boolean function to convert other types to a Boolean value. Converts a text string, number, or untyped value to a Boolean value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |