Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.1 KB

property-exists.md

File metadata and controls

28 lines (19 loc) · 1.1 KB

subkt / myaa.subkt.tasks / Subs / propertyExists

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"))
    }
}

Parameters

propertyName - The property to find.

entry - Optional manually specified entry for property lookup.