Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

negate the condition return true #146

Open
Anarchick opened this issue Oct 21, 2019 · 4 comments
Open

negate the condition return true #146

Anarchick opened this issue Oct 21, 2019 · 4 comments

Comments

@Anarchick
Copy link

it seems that "negate the condition" return true and not false , so it's useless to use this expression in skript-mirrror2.0.0SNAPSHOT custom condition. (skript2.4Beta9)

@btk5h
Copy link
Owner

btk5h commented Oct 21, 2019

Does this work correctly prior to 2.X? (On 1.X)?

@Anarchick
Copy link
Author

Anarchick commented Oct 23, 2019

I made some test, and I don't know if it's normal or not :
work (return false):

condition negate:
    check:
        negate the condition
        [...code]
        continue

Does not work:

condition negate:
    check:
        negate the condition

BUT https://skripthub.net/docs/?id=2913 , the doc say that the negate effect stop the code and return false, (I understand that), So It's a bug or an error on the doc ?

@btk5h
Copy link
Owner

btk5h commented Oct 23, 2019 via email

@Matocolotoe
Copy link
Contributor

according to #147 you should allow the return effect to be used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants