ReferenceScript nodesUtilities
Compare
Whether A and B are as the operation says: more, less, equal, not equal, at least or at most.
ƒCompare
A0Result
B0.5
Operationa is more
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Aa | any | 0 | – |
Bb | any | 0.5 | – |
Operationtest | choice | a is more | One of: a is more, a is less, Equal, Not equal, a is at least, a is at most. |
Outputs
| Pin | Type |
|---|---|
Resultout | bool |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log(((0 > 0.5)));In a graph
◆On Scene Start
ƒCompare
A0Result
B0.5
Operationa is more
ƒ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.