IfAction

data class IfAction @JvmOverloads constructor(val condition: Value, val actions: List<Action>, val elseActions: List<Action> = listOf()) : Action

Action that executes a list of actions if a condition is true, or another list of actions otherwise.

Parameters

condition

Condition to check

actions

Actions to execute if condition is true

elseActions

Actions to execute if condition is false

Constructors

Link copied to clipboard
constructor(condition: Value, actions: List<Action>, elseActions: List<Action> = listOf())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val algorithmString: String

String representation of the action

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun execute(context: Context): Context

Execute the action in the given context