Skip to content

Commit 126be33

Browse files
committed
Update funcWithStrsAndConds.ptx
1 parent 20c911e commit 126be33

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pretext/functions/funcWithStrsAndConds.ptx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ myTests().main()
275275
</input>
276276
</program>
277277
</exercise>
278+
279+
<note>
280+
<p>The first character is at index 0 and an index of -1 means the last charater.</p>
281+
</note>
278282
</subsection>
279283
<subsection xml:id="fsc_string-slices">
280284
<title>String Slices</title>
@@ -366,6 +370,7 @@ main()
366370

367371
<subsection xml:id="fsc_basic-conditionals-and-tests">
368372
<title>Basic Conditionals and Tests</title>
373+
<p>You can execute code only when a condition is true using <c>if</c>. You can execute one block of code when a condition is true (using <c>if</c>) or false (using <c>else</c>). You can even speicfy more than two outcomes as shown in the code below.</p>
369374
<exercise label="fsc_fitb_return_temp_first_line">
370375
<statement>
371376
<p>What is the first thing (first line of text) that will be printed when the code below runs? <var/> </p>

0 commit comments

Comments
 (0)