Jump to content
  • 0

Lua Operators


Fallen_Stress

Question

Hi guys I need your help for someone important.

How can i compare any integer number to a negative number.

i am using a prompts input i dont want the user to input a negative number so i want to bock all negative numbers.

if Currencies[1] < 0 then gg.alert("⚠️ Negative number are not allowed. Please try again with a positive numbers")
Currencies()
return end
end

 

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.