Jump to content

'return' reserved word


'LinKin

Recommended Posts

Hi,

For example I have this:

Function bla()

local car = getPedOccupiedVehicle(localPlayer)

if isElementInWater(car) == false then return end

-- random code below

end

If the if condition is true (car is not in water) so it returns, so the code below the function is not processed

But what happens if I have something like this

Function

if not isGuestAccount(player) then

if isElementInWater(car) then return end

-- random code

end

-- more random code

end

So, if the condition is true and it returns, would the 'more random code' be proccessed?

Link to comment

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...