ReferenceScript nodesMath › Integer
Select Integer
A when Pick A is true, otherwise B.
ƒSelect Integer
A0Result
B1
Pick A
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Aa | int | 0 | – |
Bb | int | 1 | – |
Pick ApickA | bool | false | – |
Outputs
| Pin | Type |
|---|---|
Resultout | int |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log((((false) ? 0 : 1)));In a graph
◆On Scene Start
ƒSelect Integer
A0Result
B1
Pick A
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.