More efficient "or" logic?

Started by Spicato on

Topic category: Help with modding (Java Edition)

Last seen on 17:37, 1. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
More efficient "or" logic?

Is there a way to list similar data in the procedures module using 'and/or' logic more efficiently than whats listed below?

ex.

If {(get block direction = N) or (get block direction = S) or (get block direction = E) or (get block direction = W)}

Then {...}

 

I'd imagine it would look something like:

If {(get block direction = N, S, E, W)}

Then {...}

But I cant seem to find any sort of nestable 'and/or' functions. Or am I missing something obvious?

Last seen on 01:18, 28. Mar 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Its in the logic tab, under…
Mon, 03/29/2021 - 19:06

Its in the logic tab, under the block that says "True" change the "=" to and/or

Last seen on 17:37, 1. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm currently using 2020.5…
Mon, 03/29/2021 - 21:42

I'm currently using 2020.5 and that doesnt seem to be an option, was this something added for the 2021 release?

Last seen on 01:18, 28. Mar 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
> Here <
Tue, 03/30/2021 - 05:14

> Here <

Last seen on 01:18, 28. Mar 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just drag that in and click…
Tue, 03/30/2021 - 05:15

just drag that in and click the " = " and it will bring up a drop down menu, select and / or from there

Last seen on 17:37, 1. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ah ok gotchya, I wasnt aware…
Tue, 03/30/2021 - 17:50

Ah ok gotchya, I wasnt aware that you could change the position of the inputs, thank you!