Val

This Flow Script tutorial explains how to use the Val function with syntax and examples.

Description

The Val function changes the string variable x into a numeric value. This is rarely necessary as Flow automatically coerces string values into a numeric value.

Syntax

‌The syntax for the Val function is:

Val(x)

Parameters

x - the numeric value which is to be changed into a string.

Returns

‌The Val function returns a numeric value.

Example

Let's look at some Val function examples and explore how to use the Val function.‌

Val(7)
Result: 7

Last updated