Jump to content

about scripting


solidsnake

Recommended Posts

Posted

hi all .... i just want to know how to add except (For do)

example :

for superman = 10, 20 do

bla bla bla

i want to add except like all value from 10 to 20 just only 15 (except 15)

i dont want value from 10 to 20 i want it like this [1, 2, ,3 ...(without 15) ... 20 ]

i hope understanding :lol:

Posted
for i = 1, 20 do
 
if i ~= 15 then -- if the value i is not 15 the script go on else it do nothing
 
-- do what you must do
 
end
 
end

I think you mean this. But I also new in Lua, so it can maybe wrong or i haven't understood you.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...