Mindustry
Mindustry copied to clipboard
Add `select` operation
New instruction to quickly select between two variables without using jumps
Example usage:select result notEqual x false a b
Maybe Conditional Set (setcond) would be a better name, setcond does sound like changing a condition similarly to setprop/setrule
- [x] I have read the contribution guidelines.
- [x] I have ensured that my code compiles, if applicable.
- [x] I have ensured that any new features in this PR function correctly in-game, if applicable.
you have problems with setcond?
how about condset?
Looks like ternary operator.