Share via


#binary

Syntax

#binary(value as any) as any

About

Creates a binary value from a list of numbers or a base 64 encoded text value.

Example 1

Create a binary value from a list of numbers.

Usage

#binary({0x30, 0x31, 0x32})

Output

Text.ToBinary("012")

Example 2

Create a binary value from a base 64 encoded text value.

Usage

#binary("1011")

Output

Binary.FromText("1011", BinaryEncoding.Base64)