tock / ai.tock.bot.definition / StoryDataStep / checkPreconditions

# checkPreconditions

`open fun checkPreconditions(): T.(TD?) -> D?` (source)

Checks preconditions - if BotBus.end is called, StoryHandlerDefinition.handle is not called and the handling of bot answer is over. Returned data is used in subsequent call of handler if not null

- else StoryHandlerBase.checkPreconditions returned data is used.