Jump to content
External pictures are being replaced... ×
×
×
  • Create New...
  • 0

Using "with" or "if"


Metin2Place

Question

"when kill or party_kill with pc.getqf("antiexp") == 1 begin
                .....do something....
        end"

or

"when kill or party_kill  begin
            if pc.getqf("antiexp") == 1 then
                .....do something....
            end
        end"

Which is better and why? or are the same as efficiency?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
  • Premium

if you would use that "if" without an "else" or "elseif", then you can just use "with", since there are no other ways that code can go to.

 

Don't talk about performance for such meaningless things.

 

The first one is better, but only cause of readability.

  • Love 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

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.


Important Information

Terms of Use / Privacy Policy / Guidelines / 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.