Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1.56 KB

evaluate.md

File metadata and controls

22 lines (14 loc) · 1.56 KB

subkt / myaa.subkt.tasks / Subs / evaluate

evaluate

fun evaluate(expression: String, entry: String= "", context:AbstractContext? = null): Provider<List<String>!>! (source)

Evaluates a string using Velocity, splits it on |, and processes it with glob.

This function is run outside of a task context, meaning that task-specific values such as [entry](evaluate.md#myaa.subkt.tasks.Subs$evaluate(kotlin.String, kotlin.String, org.apache.velocity.context.AbstractContext)/entry), currentTask and isBatch are not available.

evaluate("\$release - \$episode - \$merge.out.get()")
// Output: TV - $episode - $merge.out.get()

Parameters

expression - The expression to evaluate.

entry - Optional manually specified entry for property lookup.