Math Nodes
From Moving Pictures
(Redirected from Divide Node)
This page is a collection of the basic math nodes that are available in the scraper. They are outlined in the following sections. Please review the following attribute table as it applies to all math nodes.
| Attribute | Description |
|---|---|
| name | This is the attributes that sets the name of the return variable. This is a required class. |
| value1 | This attribute defines the value of the first item in your math equation. This is a required attribute. |
| value2 | This attribute defines the value of the second item in your math equation. This is a required attribute. |
| result_type | This attribute defines the return type on your equation. This defaults to INT, but you can set this to FLOAT. |
Contents |
The Add Node
This node is used to do addition calculations within your scraper.
<add name='addVar' value1='2' value2='2' />
In this example ${addVar} would have a value of 4.
The Subtract Node
This node is used to do subtraction calculations within your scraper.
<subtract name='subtractVar' value1='2' value2='2' />
In this example ${subtractVar} would have a value of 0.
The Multiply Node
This node is used to do multiplication calculations within your scraper.
<multiply name='multiplyVar' value1='2' value2='2' />
In this example ${multiplyVar} would have a value of 4.
The Divide Node
This node is used to do division calculations within your scraper.
<divide name='divideVar' value1='2' value2='2' />
In this example ${divideVar} would have a value of 1.