--- loncom/html/adm/help/tex/Spreadsheet_Ternary_Operator.tex 2002/07/22 21:08:18 1.1
+++ loncom/html/adm/help/tex/Spreadsheet_Ternary_Operator.tex 2002/07/26 19:53:59 1.2
@@ -1,3 +1,4 @@
+\label{Spreadsheet_Ternary_Operator}
The ?'s and :'s seen in the spreadsheet cells are part of compact notation for an if-then-else clause. Something like:
\texttt{( B2 > 16 ? 'passing grade' : 'failing grade')}
@@ -12,6 +13,6 @@ can be translated into:
\$temp;\\
}
-The nicest part of the ( ? : ) operator (aside from its compactness)
-is the way it automatically returns the value you want without having
-to use any temporary variable.s
\ No newline at end of file
+The nicest part of the \texttt{( ? : )} operator (aside from its
+compactness) is the way it automatically returns the value you want
+without having to use any temporary variables.
\ No newline at end of file