subkt / myaa.subkt.tasks / Subs / 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()
expression
- The expression to evaluate.
entry
- Optional manually specified entry for property lookup.