Handbook · Reference · Blockly · Class

Blockly: Class

Where in the UI. Scripts tab toolbox.

Class variables, membership, list/run class scripts and API.

Block idRead asPurpose
containd_read_class_variableread class variablepick a class-authored variable key
containd_read_class_variable_on_itemread class variable on itemcallHost(getItemVariable) with itemId — class-authored key dropdown
containd_class_variable_existsclass variable existsTrue when the class-authored key is stored on the active item.
containd_class_variable_exists_on_itemclass variable exists on itemTrue when the class-authored key is stored on the given item.
containd_write_class_variablewrite class variablepick a class-authored key; TYPE auto-fills from the Variables node
containd_write_class_variable_on_itemwrite class variable on itemcallHost(setItemVariable) with itemId — class-authored key dropdown
containd_delete_class_variabledelete class variableclass-authored key dropdown
containd_delete_class_variable_on_itemdelete class variable on itemcallHost(deleteItemVariable) with itemId — class-authored key dropdown
containd_class_idclass idProject class id — every class in the project, including those not attached to this template. Plug into item has class, or replace with a text block to type any id.
containd_item_has_classitem has classtrue when the bound item element has the class attached or via inheritance. Plug a class picker or type any class id string. Membership is resolved on the target item’s template.
containd_item_has_class_on_itemitem has class on itemcallHost(itemHasClass) with itemId — use 0 for bound item; requires read.relatives for other items. Plug a class picker or type any class id string.
containd_list_item_classeslist item classeseffective Template Class ids for the bound item (attached + ancestors)
containd_list_item_classes_on_itemlist item classes on itemuse 0 for bound item; requires read.relatives for other items
containd_list_item_scriptslist item scriptsscript ids exposed via trigger-api on this item
containd_list_item_scripts_on_itemlist item scripts on itemuse 0 for bound item; requires read.relatives for other items
containd_list_item_scripts_by_prefixlist item scripts by prefixmatches script.id prefix on this item
containd_list_item_scripts_by_prefix_on_itemlist item scripts by prefix on itemuse 0 for bound item
containd_run_item_scriptrun item scriptfalse when id is not exposed; requires scripts.invoke
containd_run_item_script_on_itemrun item script on itemuse 0 for bound item; requires scripts.invoke + read.relatives for others
containd_run_class_apirun class apiclass Export script from dropdown
containd_run_class_api_on_itemrun class api on itemcallHost(runItemScript) with itemId — class Export from dropdown