Diff for /loncom/html/adm/help/tex/Variables_in_Scripts.tex between versions 1.3 and 1.4

version 1.3, 2002/08/29 18:26:28 version 1.4, 2012/10/12 13:26:55
Line 3 Line 3
 Variables can be used later in the same script. For instance, we can add  Variables can be used later in the same script. For instance, we can add
 another line below the \texttt{\$variable} line as such:  another line below the \texttt{\$variable} line as such:
   
 \begin{lyxcode}  
 \$variable2~=~\$variable~+~2;  \$variable2~=~\$variable~+~2;
 \end{lyxcode}  
   
 Now there is a variable called \texttt{\$variable2} with the the number {}``5''  Now there is a variable called \texttt{\$variable2} with the the number {}``5''
 as its value.   as its value. 
Line 16  large number of ways of using variables Line 14  large number of ways of using variables
 common way is to use normal double-quotes and just spell out the name of  common way is to use normal double-quotes and just spell out the name of
 the variable you want to use in the string, like this:  the variable you want to use in the string, like this:
   
 \begin{lyxcode}  
 \$stringVar~=~{}``I~have~a~variable~with~the~value~\$variable.'';  \$stringVar~=~{}``I~have~a~variable~with~the~value~\$variable.'';
 \end{lyxcode}  
   
 This will put the string {}``I have a variable with the value 3.'' into  This will put the string {}``I have a variable with the value 3.'' into
 the variable named {}``stringVar''.  the variable named {}``stringVar''.

Removed from v.1.3  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>