--- loncom/html/adm/help/tex/Variables_in_Scripts.tex 2002/07/18 15:52:27 1.2
+++ loncom/html/adm/help/tex/Variables_in_Scripts.tex 2012/10/12 13:26:55 1.4
@@ -3,9 +3,7 @@
Variables can be used later in the same script. For instance, we can add
another line below the \texttt{\$variable} line as such:
-\begin{lyxcode}
\$variable2~=~\$variable~+~2;
-\end{lyxcode}
Now there is a variable called \texttt{\$variable2} with the the number {}``5''
as its value.
@@ -16,9 +14,7 @@ large number of ways of using variables
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:
-\begin{lyxcode}
-\$stringVar~=~{}``I~have~a~variable~with~the~value~\$variable.''
-\end{lyxcode}
+\$stringVar~=~{}``I~have~a~variable~with~the~value~\$variable.'';
This will put the string {}``I have a variable with the value 3.'' into
the variable named {}``stringVar''.