diff --git a/doc/if.html b/doc/if.html index 76310bbc71..ff051e55f9 100644 --- a/doc/if.html +++ b/doc/if.html @@ -25,10 +25,10 @@

Examples:

-
if $steps > 1000 then exit
+
if ${steps} > 1000 then exit
 if $x <= $y then "print X is smaller = $x" else "print Y is smaller = $y"
-if $eng > 0.0 then "timestep 0.005"
-if $eng > $eng_previous then "jump file1" else "jump file2" 
+if ${eng} > 0.0 then "timestep 0.005"
+if ${eng} > ${eng_previous} then "jump file1" else "jump file2" 
 

Description:

diff --git a/doc/if.txt b/doc/if.txt index e145463511..565e46169e 100644 --- a/doc/if.txt +++ b/doc/if.txt @@ -22,10 +22,10 @@ command2 = command to execute if condition is not met (optional argument) :ul [Examples:] -if ${steps} > 1000 then exit +if $\{steps\} > 1000 then exit if $x <= $y then "print X is smaller = $x" else "print Y is smaller = $y" -if ${eng} > 0.0 then "timestep 0.005" -if ${eng} > ${eng_previous} then "jump file1" else "jump file2" :pre +if $\{eng\} > 0.0 then "timestep 0.005" +if $\{eng\} > $\{eng_previous\} then "jump file1" else "jump file2" :pre [Description:]