Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I put 2 values in greater equal or less equal?

Asked by 7 years ago

How do I put 2 values within a radius

for example

I have a value of 12,000 and another value of 13,000

what I need is that within (12,000) and (13,000) be executed

and I do not know how it is

local iluminacion = game.Lighting.ClockTime -- variable

while true do
    wait (10) -- verifica cada 10 segundos si es la hora 08:00 AM
    if iluminacion >= 8.000 or <= 9.000 then
        dinero.Value = dinero.Value + 350 -- dolares
    end
end

end

HELP PLS!!!

0
you need to compare "iluminacion" agains your range User#5423 17 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago

You need to write full expressions between operators in conditional statements.

if iluminacion >= 8.000 and iluminacion <= 9.000 then
    ...
end
Ad

Answer this question