Whats the diference between >= and >

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Serenade
:warning: 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?

:bust_in_silhouette: 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