system
1
|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
Asked By |
Serenade |
|
Old Version |
Published before Godot 3 was released. |
Im going trough this code… and there is …
if (velocity.y **>=** 0):
and
if (velocity.y **>** 0):
are they any diferent?
system
4
|
|
|
|
Reply From: |
Nutr1z |
Hi,
Yes they have a difference.
sign > : strictly superior
sign >= : superior or equal
var value = 2
if(value > 2):
print("value strictly superior to 2")
if(value >= 2):
print("value superior or equal to 2")
Only the second print is exectued