This shows you the differences between two versions of the page.
jvs:fscan:manual:chapter2:if [2011/03/31 14:49] 127.0.0.1 external edit |
jvs:fscan:manual:chapter2:if [2023/02/23 18:43] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | **fScan Reference Manual, Chapter 2 (CmdLineOptions): | ||
- | ===== If -- Test some condition before executing commands ===== | ||
- | **usage:** -if EXPR { COMMANDS }\\ | ||
- | **or:** -if ! EXPR { COMMANDS } | ||
- | ===== ===== | ||
- | The EXPR argument to IF must be an expression that will yield a numerical value. | ||
- | If EXPR > 0, the COMMANDS string inside the curly brackets will be executed next.\\ | ||
- | If EXPR <= 0, the COMMANDS string will be ignored. | ||
- | |||
- | EXPR can be a single number, an arithmetic expression, or a [[jvs: | ||
- | $xdim - data set image width | ||
- | ? | ||
- | $zdim-30 | ||
- | exists(param.tmp) | ||
- | |||
- | If ' | ||
- | Note: the ' | ||
- | |||
- | **See Also:**\\ | ||
- | [[jvs: | ||
- | [[jvs: | ||
- | [[jvs: | ||
- | [[jvs: |