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

Logical.From

Owen Duncan|Last Updated: 4/19/2018

About

Returns a logical value from a value.

Logical.From(value as any) as nullable logical

Arguments

ArgumentDescription
valueValue to convert.

Type to convert

TypeDescription
textReturns a logical value of "true" or "false" from the text value. For more details, see Logical.FromText.
numberIf value equals 0, true; otherwise, false.
any other typeAn Expression.Error is thrown.

Remarks

  • If value is null, Logical.From returns null.

  • If a value is logical, the same value is returned.

Example

Logical.From(2) equals true  
© 2018 Microsoft