Skip to content

A better understanding of changing functions

Case 1: I always want to retrieve values in an array

Section titled “Case 1: I always want to retrieve values in an array”

The behavior does not change in this case because the extracted values will be returned in an array.

1 when i extract multiple values

By default, when the returned value was unique, the function returned a string. Now, by default, the function returns an array containing a single value.

2 when i extract single value

Case 2: I always want to retrieve a single value as a string

Section titled “Case 2: I always want to retrieve a single value as a string”

The addition of the “Unwrap Single Value” option now allows for the extraction of a single value to define that the output type should be a string.

Case

⚠️ If I’ve selected this option and the function returns several IPs, it will automatically return an array of strings.

Therefore, it is necessary to check if the expected type is consistent with the type returned by the function. The type can now be either a string or an array.