Scope in Linx Functions works the same as in programming. Data is in scope if it is an ancestor in the execution tree.
In the example below:
StringX is in scope of (i.e. available to):
StringY is only available to SetValue_when_Condition_met
StringZ is only available to SetValue_when_Condition_not_met