Help with an issue with the and operator

Hi, i am scripting a card game, and i wanted to check that both players played their cards, but when i compare the values of the cards i got an issue

print(partida.primeraMano.oponenteCarta.Value)
--0

print(partida.primeraMano.oponenteCarta.Value ~= 0)
--true

print(0 ~= 0)
--false

i don’t know what i’m doing wrong

What type of instance value are you using

OMG, i forgot i was using a string value instead of a numbervalue, thanks for the reply

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.