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/10/08 21:19] voyvodic [Accessing data variables] |
jvs:fscan:manual:chapter4 [2023/02/23 18:43] (current) |
||
---|---|---|---|
Line 12: | Line 12: | ||
==== 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 18: | 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)? | * $exists(filename) - does the named file exist (0=no, 1=regular file, 2=directory)? | ||
* $filepath(filename) - return the full path to the named file | * $filepath(filename) - return the full path to the named file | ||
Line 26: | Line 28: | ||
* $date(filename) - return a string containing the file modification date (yyyymmddhhmmss) | * $date(filename) - return a string containing the file modification date (yyyymmddhhmmss) | ||
* $age(filename) - return the age of the named file in seconds | * $age(filename) - return the age of the named file in seconds | ||
+ | |||
* tables | * tables | ||
* listitem | * listitem |