When

data class When(val condition: () -> Boolean) : Event.AutonomousEvent<Any>

Triggers when condition becomes true.

Constructors

Link copied to clipboard
constructor(condition: () -> Boolean)

Properties

Link copied to clipboard
val condition: () -> Boolean
Link copied to clipboard
open override val parameter: Any

the parameter associated with the event

Functions

Link copied to clipboard
open override fun shouldTrigger(): Boolean