Skip to content

select

Operations

Conditionally set a variable to one of two values.

Syntax

select result notEqual x false a b

Parameters

ParameterTypeDefaultValues
resultvalueresult
opConditionOpnotEqual
  • equal ==
  • notEqual not
  • lessThan <
  • lessThanEq <=
  • greaterThan >
  • greaterThanEq >=
  • strictEqual ===
  • always always
comp0valuex
comp1valuefalse
avaluea
bvalueb

Data taken from Mindustry v160.4 by the project generators.

Unofficial fan project, not affiliated with Anuke. Mindustry sprites, fonts and translations © Anuke, used under GPL-3.0; Fira Code under OFL-1.1. Site code is GPL-3.0.