<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Scilab%2FC2%2FConditional-Branching%2FEnglish</id>
		<title>Scilab/C2/Conditional-Branching/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Scilab%2FC2%2FConditional-Branching%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Scilab/C2/Conditional-Branching/English&amp;action=history"/>
		<updated>2026-05-15T15:38:31Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Scilab/C2/Conditional-Branching/English&amp;diff=11241&amp;oldid=prev</id>
		<title>PoojaMoolya at 04:30, 13 June 2014</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Scilab/C2/Conditional-Branching/English&amp;diff=11241&amp;oldid=prev"/>
				<updated>2014-06-13T04:30:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 04:30, 13 June 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! &amp;lt;center&amp;gt;Visual &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Clue&lt;/del&gt;&amp;lt;/center&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! &amp;lt;center&amp;gt;Visual &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Cue&lt;/ins&gt;&amp;lt;/center&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! &amp;lt;center&amp;gt;Narration&amp;lt;/center&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! &amp;lt;center&amp;gt;Narration&amp;lt;/center&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Scilab/C2/Conditional-Branching/English&amp;diff=283&amp;oldid=prev</id>
		<title>Chandrika: Created page with ''''Title of script''': Conditional Branching  '''Author: Anuradha Amrutkar'''  '''Keywords: if-then-else, select-case'''    {| style=&quot;border-spacing:0;&quot; ! &lt;center&gt;Visual Clue&lt;/ce…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Scilab/C2/Conditional-Branching/English&amp;diff=283&amp;oldid=prev"/>
				<updated>2012-11-27T14:03:32Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;#039;&amp;#039;&amp;#039;Title of script&amp;#039;&amp;#039;&amp;#039;: Conditional Branching  &amp;#039;&amp;#039;&amp;#039;Author: Anuradha Amrutkar&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Keywords: if-then-else, select-case&amp;#039;&amp;#039;&amp;#039;    {| style=&amp;quot;border-spacing:0;&amp;quot; ! &amp;lt;center&amp;gt;Visual Clue&amp;lt;/ce…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Title of script''': Conditional Branching&lt;br /&gt;
&lt;br /&gt;
'''Author: Anuradha Amrutkar'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: if-then-else, select-case'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
! &amp;lt;center&amp;gt;Visual Clue&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Narration&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| Welcome to the spoken tutorial on Conditional Branching in Scilab. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| To practice this tutorial open the scilab console window on your computer &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| We will discuss two types of Conditional constructs in Scilab that is the &amp;quot;if-then-else&amp;quot; construct and the &amp;quot;select-case conditional&amp;quot; construct. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| The if statement allows us to execute a group of statements if a given condition is satisfied. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Demonstration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| Let me give you an example: &lt;br /&gt;
&lt;br /&gt;
  n = 42, &lt;br /&gt;
  if (n == 42) then &lt;br /&gt;
  disp(&amp;quot;The number is forty two&amp;quot;)&lt;br /&gt;
  end &lt;br /&gt;
&lt;br /&gt;
of if construct. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| Here '=' is the assignment operator, which assigns 42 to the variable n, and '==' is the equality operator, which checks for the equality between the right hand and the left hand side operands.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| In this case n and 42 and gives the result in Boolean. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| Here the comma after the first line is optional, Also the ''then'' keyword is optional.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| It can be replaced by a comma or a carriage return. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| The end keyword ends the &amp;quot;if&amp;quot; construct. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| On executing the script, we see the output as follows. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| So far we have seen how to execute a set of statements if a condition is true. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| Now we will see how to execute another set of statements if that condition is false or we may wish to check if some other condition is satisfied.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Demonstration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| We can do this by using 'else' or 'elseif' keyword respectively. Here is how we do it (the action is shown) &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Demonstration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| In this example, 54 is assigned to a variable n and checked for both true condition using 'if' and false condition using 'else' as described:&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Demonstration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| I will cut this paste in the scilab console hit enter &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   n = 54, &lt;br /&gt;
  if (n == 42) then &lt;br /&gt;
    disp(&amp;quot;The number is forty two&amp;quot;)&lt;br /&gt;
  elseif (n == 54) then, &lt;br /&gt;
    disp(&amp;quot;The number is fifty four&amp;quot;) &lt;br /&gt;
  else &lt;br /&gt;
    disp(&amp;quot;The number is neither forty two nor fifty four&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Demonstration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| You see the output (output is displayed). &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Demonstration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| If you notice, the examples shown above are on multiple lines. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| They can also be written in a single line with proper semicolons and commas.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Demonstration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| I will cut this and paste in the scilab to execute hit enter &lt;br /&gt;
&lt;br /&gt;
  x = 3; y = 5; z = 4; if x&amp;gt;5 then disp(x), elseif x&amp;gt;6 then disp(y), else disp(z), end&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| The select statement allows to combine several branches in a clear and simple way.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| Depending on the value of a variable, it allows to perform the statement corresponding to the case keyword.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| There can be as many branches as required. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Narration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| Let us try with an example.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Demonstration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| We will assign 100 to a variable 'n' and check the cases 42, 54 and a default case represented by else cut paste hit enter&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Demonstration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| n = 100, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  select n&lt;br /&gt;
&lt;br /&gt;
    case 42&lt;br /&gt;
      disp(&amp;quot;The number is forty two&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    case 54&lt;br /&gt;
      disp(&amp;quot;The number is fifty four&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    else &lt;br /&gt;
      disp(&amp;quot;The number is neither forty two nor fifty four&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Demonstration&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| Here we see the output . (Shows the output)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| This brings us to the end of this spoken tutorial on Conditional Branching using Scilab.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| In this tutorial we have learnt the if - elseif - else statement and the select statement.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| There are many other functions in Scilab which will be covered in other spoken tutorials.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| Keep watching the Scilab links. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| Spoken Tutorials are part of the Talk to a Teacher project, supported by the National Mission on Education through ICT. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:none;padding:0.0382in;&amp;quot;| Slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.0139in solid #000000;border-left:0.0139in solid #000000;border-right:0.0139in solid #000000;padding:0.0382in;&amp;quot;| More information on the same is available at [http://spoken-tutorial.org/NMEICT-Intro http://spoken-tutorial.org/NMEICT-Intro]. &lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>