This shows you the differences between two versions of the page.
jvs:fscan:manual:chapter4 [2013/10/08 21:19] voyvodic [Accessing data variables] |
jvs:fscan:manual:chapter4 [2023/02/23 18:43] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | **fScan Reference Manual, Chapter 4 (Variables): | ||
- | |||
- | ===== fScan internal variables ===== | ||
- | |||
- | fScan supports several different types of internal variables. Values of some variables are global -- they do not change when you move from one active window to another. | ||
- | |||
- | * [[jvs: | ||
- | * [[jvs: | ||
- | * [[jvs: | ||
- | * [[jvs: | ||
- | * [[jvs: | ||
- | |||
- | ==== Accessing data variables ==== | ||
- | In general, data variable values can be accessed by specifying the name of the variable, preceded by the ' | ||
- | |||
- | For example:\\ | ||
- | * -echo Window: $thiswin WorkSpace $wsnum | ||
- | * -echo Varb: ?curdir ?thiswin ? | ||
- | |||
- | Variable operators: | ||
- | * $ | ||
- | * ? | ||
- | * $exists(filename) - does the named file exist (0=no, 1=regular file, 2=directory)? | ||
- | * $filepath(filename) - return the full path to the named file | ||
- | * $relpath(filename) - return the relative path (from $curdir) | ||
- | * $date(filename) - return a string containing the file modification date (yyyymmddhhmmss) | ||
- | * $age(filename) - return the age of the named file in seconds | ||
- | * tables | ||
- | * listitem | ||
- | * listflag | ||
- | |||
- | |||
- | |||
- | **See Also:**\\ | ||
- | [[jvs: | ||
- | [[jvs: | ||
- | [[jvs: | ||
- | [[jvs: | ||