Scope in Linx Functions works the same as in programming. Data is in scope if it is an ancestor in the execution tree.