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:22] voyvodic [Accessing data variables] |
jvs:fscan:manual:chapter4 [2021/12/15 22:23] voyvodic |
||
---|---|---|---|
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 '$' character is also used to identify fScan special functions |
- | * $varbname - the value of the named variable | + | |
- | * ?varbname - the status of the named variable | + | |
* $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 |