This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
jvs:fscan:manual:chapter4 [2011/10/29 16:47] voyvodic |
jvs:fscan:manual:chapter4 [2023/02/23 18:43] (current) |
||
---|---|---|---|
Line 5: | Line 5: | ||
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. | 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: | ||
- | * [[jvs: | + | * [[jvs: |
* [[jvs: | * [[jvs: | ||
* [[jvs: | * [[jvs: | ||
==== Accessing data variables ==== | ==== Accessing data variables ==== | ||
- | In general, data variable values can be accessed by specifying the name of the variable, preceded by the' | + | In general, data variable values can be accessed by specifying the name of the variable, preceded by the ' |
- | | + | |
+ | Variable operators: | ||
+ | * $varbname - the value of the named variable (_varbname works the same) | ||
+ | * ?varbname - the status of the named variable (0=undefined, | ||
+ | |||
+ | For example: | ||
+ | * -echo Window: $thiswin WorkSpace $wsnum | ||
+ | * -echo Varb: ?curdir ?thiswin ? | ||
+ | |||
+ | The ' | ||
+ | * $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 | ||
- | Variable operators: | ||
- | * $ | ||
- | * exists | ||
- | * filepath | ||
- | * relpath | ||
* tables | * tables | ||
* listitem | * listitem | ||
Line 28: | Line 36: | ||
**See Also:**\\ | **See Also:**\\ | ||
- | [[jvs: | + | [[jvs: |
[[jvs: | [[jvs: | ||
[[jvs: | [[jvs: | ||
[[jvs: | [[jvs: | ||