functionboole
Returns 1.0 if input is true, and 0.0 otherwise
Extends from BusinessSimulation.Icons.Function (Icon for functions).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The function returns 1.0 if the Boolean input u is true and 0.0 in all other cases.
Syntax
Functions.boole(u)
Examples
Functions.boole(true); // 1.0
Functions.boole(false); // 0.0
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | u | Boolean input |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | Real output |
Revisions
- Added
Inline = truein v2.1.0.