Table of contents
Collapse the table of content
Expand the table of content


Owen Duncan|Last Updated: 10/5/2018
1 Contributor

Logical.From(value as any) as nullable logical


Returns a logical value from the given value. If the given value is null, Logical.From returns null. If the given value is logical, value is returned.

Values of the following types can be converted to a logical value:

  • text: A logical value from the text value, either "true" or "false". See Logical.FromText for details.
  • number: false if value equals 0, true otherwise.
If value is of any other type, an error is returned.

Example 1

Convert 2 to a logical value.



© 2018 Microsoft