--- 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/29 14:51:43 1.3
@@ -1,4 +1,6 @@
-The ?'s and :'s seen in the spreadsheet cells are part of compact notation for an if-then-else clause. Something like:
+\label{Spreadsheet_Ternary_Operator}
+The ?\index{? :}'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 +14,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