# Scope

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):
  * *SetValue\_when\_Condition\_met*
  * *SetValue\_when\_Condition\_not\_met*
  * *SetValue\_after\_Condition\_check*
* *StringY* is only available to *SetValue\_when\_Condition\_met*
* *StringZ* is only available to *SetValue\_when\_Condition\_not\_met*

<figure><img src="https://3338214469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1nxDeDH8GVCXb0XelqGm%2Fuploads%2Fgit-blob-d8e8dee7aafc41d13c2331d35e7c1f3f5be0df76%2Fscope1.png?alt=media" alt="Function scope"><figcaption></figcaption></figure>

Previous | Next
