MysteryBlokHed / databind

Expand the functionality of Minecraft Datapacks.
https://databind.rtfd.io/en/stable
GNU General Public License v3.0
4 stars 0 forks source link

Add if/else statements #84

Closed MysteryBlokHed closed 3 years ago

MysteryBlokHed commented 3 years ago

Closes #83

Adds support for if/else statements. The keyword runif was used instead of if to avoid conflicting with the execute if command.

MysteryBlokHed commented 3 years ago

Testing the output of code that generates if statements might be hard to do if there's more than one, but some code from the while loop tests could probably be reused.

MysteryBlokHed commented 3 years ago

A new issue (#85) has been added that will make easier testing of if/else statements and while loops possible. Until then, I think it's alright to merge this, since nested/multiple if statements have been tested and the code likely won't be modified any time soon.