Mindustry icon indicating copy to clipboard operation
Mindustry copied to clipboard

Add `select` operation

Open Redstonneur1256 opened this issue 7 months ago • 2 comments

New instruction to quickly select between two variables without using jumps Example usage:select result notEqual x false a b image

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.

Redstonneur1256 avatar May 11 '25 23:05 Redstonneur1256

you have problems with setcond? how about condset?

The4codeblocks avatar May 12 '25 12:05 The4codeblocks

Looks like ternary operator.

kJNCwBUq avatar Jun 04 '25 02:06 kJNCwBUq