Log inGet started
Package

value.nodebox

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

value.present (procNode)

Whether anything is wired into value, as a Bool: what a graph used as a node asks of an input its caller may leave unwired, to decide what it does. The answer is known when the graph is planned.

Inputs

  • value (Any, optional): the input asked about.

Outputs

  • present (Bool): true when value is wired.

Example

local mask = g:input("mask", nil, { type = "Field", optional = true })
local masked = g.value.present({ value = mask })