bool function. Conversion.(Power Automate Cloud flows)

Japanese version.

Function to convert a number or specific text to a boolean value.

The main use is to convert Boolean values that are text or numbers when a file is imported from some application.

Spec

bool('<value>')

ArgumentDefaultDescription
valueRequired fieldValue to convert.

How to use

In most cases, it is used in the "value" when initializing or setting variables of type "Boolean".

Click on the "Expression" tab, bool, and the function name and () will be set in the expression field.

Click on the button, and if the display looks like the following, the setting is complete.

You can change the function by clicking this purple icon.

As an argument, specify the value to be converted.

If the value is text, enclose it in '.

When dynamic content or variables are used in expressions, special specifications are required.

(How to get dynamic content with expressions.)

The value conversion is performed as follows.

valueResult
0false
non-zerotrue
'true'true
'false'false

Any text other than 'true' or 'false' will result in an error.

Upper and lower case letters are absorbed.

---

Links

Conversion Functions(Power Automate Cloud flows)