Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Conditionally calling an inline process ignores condition #66

Closed
Adrodoc opened this issue Jul 9, 2017 · 1 comment
Closed

Conditionally calling an inline process ignores condition #66

Adrodoc opened this issue Jul 9, 2017 · 1 comment
Assignees

Comments

@Adrodoc
Copy link
Owner

Adrodoc commented Jul 9, 2017

For instance this program:

impulse process main {
  /say hi
  if: /testfor @p[tag=test]
  then {
    other1()
  } else {
    other2()
  }
}

process other1 {
  /say 1
}

process other2 {
  /say 2
}

Will always print:

hi
1
2

Regardless of the players tags.

@Adrodoc Adrodoc self-assigned this Jul 9, 2017
@Adrodoc
Copy link
Owner Author

Adrodoc commented Jul 9, 2017

This also affects conditional and invert not just if

Adrodoc added a commit that referenced this issue Jul 9, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

1 participant