<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How can I write a good condition if else if in JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-write-a-good-condition-if-else-if-in-JMP/m-p/71032#M35335</link>
    <description>&lt;P&gt;Hello I have several columns with data and I want to add another col which will get a formula like this:&lt;/P&gt;&lt;P&gt;A B C&lt;/P&gt;&lt;P&gt;2 5&lt;/P&gt;&lt;P&gt;3 4&lt;/P&gt;&lt;P&gt;5 5&lt;/P&gt;&lt;P&gt;4 7&lt;/P&gt;&lt;P&gt;C column will get an if else formula for example: If(A&amp;amp;B==4 then C ==Good) else if(A&amp;amp;B==3 then C ==bad) else if(A&amp;amp;B==1 then C ==Good)&lt;/P&gt;&lt;P&gt;How can I write this in a formula ?&lt;/P&gt;</description>
    <pubDate>Mon, 03 Sep 2018 09:47:54 GMT</pubDate>
    <dc:creator>axcelenator1</dc:creator>
    <dc:date>2018-09-03T09:47:54Z</dc:date>
    <item>
      <title>How can I write a good condition if else if in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-write-a-good-condition-if-else-if-in-JMP/m-p/71032#M35335</link>
      <description>&lt;P&gt;Hello I have several columns with data and I want to add another col which will get a formula like this:&lt;/P&gt;&lt;P&gt;A B C&lt;/P&gt;&lt;P&gt;2 5&lt;/P&gt;&lt;P&gt;3 4&lt;/P&gt;&lt;P&gt;5 5&lt;/P&gt;&lt;P&gt;4 7&lt;/P&gt;&lt;P&gt;C column will get an if else formula for example: If(A&amp;amp;B==4 then C ==Good) else if(A&amp;amp;B==3 then C ==bad) else if(A&amp;amp;B==1 then C ==Good)&lt;/P&gt;&lt;P&gt;How can I write this in a formula ?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 09:47:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-write-a-good-condition-if-else-if-in-JMP/m-p/71032#M35335</guid>
      <dc:creator>axcelenator1</dc:creator>
      <dc:date>2018-09-03T09:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write a good condition if else if in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-write-a-good-condition-if-else-if-in-JMP/m-p/71039#M35339</link>
      <description>&lt;P&gt;&lt;LI-MESSAGE title="If Secrets" uid="39558" url="https://community.jmp.com/t5/Uncharted/If-Secrets/m-p/39558#U39558"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;has a good description of how to use the If() function.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 19:09:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-write-a-good-condition-if-else-if-in-JMP/m-p/71039#M35339</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2019-05-03T19:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write a good condition if else if in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-write-a-good-condition-if-else-if-in-JMP/m-p/71212#M35371</link>
      <description>&lt;P&gt;This code will do what you described:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Untitled", Add Rows( 6 ),
	New Column( "A", Numeric, "Continuous", Format( "Best", 12 ),
		Set Values( [2, 3, 5, 4, 4, 1] ) ),
	New Column( "B", Numeric, "Continuous", Format( "Best", 12 ),
		Set Values( [5, 4, 5, 7, 4, 1] ) ),
	New Column( "C", Character, "Nominal", Formula(
			If( :A == 4 &amp;amp; :B == 4, "Good",
				:A == 3 &amp;amp; :B == 3, "Bad",
				:A == 1 &amp;amp; :B == 1, "Good"
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Craig's link is excellent, especially because it discusses what happens with null values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 13:07:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-write-a-good-condition-if-else-if-in-JMP/m-p/71212#M35371</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-09-04T13:07:09Z</dc:date>
    </item>
  </channel>
</rss>

