subkt / myaa.subkt.tasks / Subs / propertyExists
fun propertyExists(propertyName:
String
, entry:
String
= ""):
Boolean
(source)
Returns true if the given property exists in the Subs object's SubProperties instance for the given context.
This function is run outside of a task context, using only release for lookup unless an entry is manually specified.
merge {
from(get("dialogue"))
// only include OP if defined for the current episode
if (propertyExists("op")) {
from(get("op"))
}
}
propertyName
- The property to find.
entry
- Optional manually specified entry for property lookup.