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 [2013/06/11 17:41] 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:\\ | For example:\\ | ||
Line 19: | Line 22: | ||
* -echo Varb: ?curdir ?thiswin ? | * -echo Varb: ?curdir ?thiswin ? | ||
- | Variable operators: | + | 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 |
- | * exists | + | * $relpath(filename) - return the relative path (from $curdir) |
- | * filepath | + | * $date(filename) - return a string containing the file modification date (yyyymmddhhmmss) |
- | * relpath | + | * $age(filename) - return the age of the named file in seconds |
* tables | * tables | ||
* listitem | * listitem |