Custom:executeForNumber

Method

Purpose

This method (on all platforms) executes a command and parses the output as a number which is then returned as both an integer and a double value. The integer value of a true double truncates the remainder.

Remarks

The command that is executed can return information by sending a number to stdout. If the executed command returns more than one number, an error will result.

The executable can return information by sending strings to stdout. If the executable returns more than one line, the lines are concatenated to produce one string.

Type

Synchronous, IMPACT_ACTION_INFO.

Arguments

 

Name

Type

Description

command

String

The command to execute.

External and internal variables can be used in the command string.

Returns

 

Name

Type

Description

returnInteger

Integer

The integer value of the return string

returnDouble

Double

The double value of the return string