ProtoFlux:Parse Quantity

From Resonite Wiki
Revision as of 23:02, 1 July 2024 by AmasterAmaster (talk | contribs) (Created a page for the Parse Quantity node.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Parse Quantity <Type>
Str
Value
DefaultUnit
IsParsed
Quantity

The Parse Quantity node takes in a string that has our unit of measurement as its contents, along with the string that holds our default unit. Then it returns a parsed unit of measurement value and if it parsed it successfully.

To create a node within this category, keep in mind you want to type QuantityX. at the beginning of your search, and then the unit you want to use. Examples: QuantityX.Mass, QuantityX.Time, and QuantityX.Voltage.

Inputs

Str (string)

The string to parse.

DefaultUnit (string)

The units we are going to try to parse out.

Outputs

Value (Pseudo-Generic)

Returns the parsed unit of measurement value.

IsParsed (bool)

Returns if this value has been parsed.