How is this if statement failing?

Just doing some basic iteration on a table but the logic is failing for no apparent reason, let me know if you need additional information for this



1 Like

In the image, it appears the output is working:


Are you storing the ‚ÄúverificationData‚ÄĚ as a string? If so, you can do ‚Äútonumber(verificationDatathinghere)‚ÄĚ

Otherwise, add some more prints after the if statement. See if it actually is working, and if the problem resides somewhere further in the code.

The tonumber() worked, which is weird because I tried tostring(player.UserId) :man_shrugging:

1 Like