Factorio Prototype DocsVersion 1.1.107

NoiseIfElseChain :: struct

Has an arguments property that is a list of condition-result expression pairs followed by a default result expression, like so:

{
  type = "if-else-chain",
  arguments = {
    condition1, result1,
    condition2, result2,
    ...
    defaultResult
  }
}

The result of the if-else-chain is the value of the first result expression whose condition expression evaluated to true, or the value of the default result ('else') expression.

Properties

type :: "if-else-chain"
arguments :: array[NoiseExpression]

Properties

type :: "if-else-chain"

arguments :: array[NoiseExpression]

Prototypes

Types