/
Variables: Comparisons
Variables: Comparisons
A very important technique is to compare values against each other and make a decision:
# Greater than or equal: >= # Greater: > if (mass >= 100 and friction > 0.001): do something # Less than or equal: <= # Is not equal: != if (velocity <= 5.0 or velocity != 10.0): do something # Equal: == if (name == "Rocket01"): do something
Related content
Variables: Basics
Variables: Basics
More like this
Objects - Rigid Body
Objects - Rigid Body
More like this
Objects - Rigid Body
Objects - Rigid Body
More like this
Python Quick Start
Python Quick Start
More like this
Objects - Rigid Body: MultiBody
Objects - Rigid Body: MultiBody
More like this
Objects - Rigid Body: MultiBody
Objects - Rigid Body: MultiBody
More like this