<?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 Re: conditional formatting rules in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/conditional-formatting-rules/m-p/38518#M22548</link>
    <description>&lt;P&gt;Hi Heather,&lt;/P&gt;
&lt;P&gt;This is a bit late for a reply to your original query, but I found myself in a very similar situation to the one you describe a couple of days ago - and this is what I did to get the effect I wanted:&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;First, use the interactive dialog as described in &lt;/FONT&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Is-there-a-way-to-send-a-font-color-to-a-single-value-in-a/td-p/8643" target="_blank"&gt;&lt;U&gt;&lt;FONT color="#0000ff" size="3"&gt;&lt;SPAN&gt;https://community.jmp.com/t5/Discussions/Is-there-a-way-to-send-a-font-color-to-a-single-value-in-a/td-p/8643&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt; to create the set of conditions you want. What I wanted to do was to shade the cells of all the NumberColBoxes in a TableBox with a background color of red if the contents was less than 0.25, amber if it was greater than or equal to 0.25 but less than 0.75, and green if it was greater than or equal to 0.75. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted the text color changed from black to white when the background color was red or green to make it easier to read, and I could also have also applied bold and/or italic options to the text if I'd wanted to. The dialog screen when looking at the "amber" condition looked like this:&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-04-26 Graphic.PNG" style="width: 504px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5975iB0FBE610B0C05FE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-04-26 Graphic.PNG" alt="2017-04-26 Graphic.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having set it up, I then needed to see what the above looked like in JSL so I could incorporate it into my script. To do that, type "show preferences()" into a script window and run it. The output shows all your preferences, including the one that's just been set up, which in my case looked like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;RuleSet(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; RuleName( &lt;FONT color="#800080"&gt;"DMR_Test_01"&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;GreaterThan(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Value( &lt;FONT color="#008080"&gt;0.75&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Inclusive( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"White"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( {&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;200&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;0&lt;/FONT&gt;} ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Range(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; MinValue( &lt;FONT color="#008080"&gt;0.25&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; MaxValue( &lt;FONT color="#008080"&gt;0.75&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; InclusiveStart( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; InclusiveEnd( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Black"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Medium Light Yellow"&lt;/FONT&gt; ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;LessThan(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Value( &lt;FONT color="#008080"&gt;0.25&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Inclusive( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"White"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Red"&lt;/FONT&gt; ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I therefore incorporated the above rule set into a Preferences() statement of my own, then tested it on a TableBox with an assortment of columns of random numbers between 0 and 1 as shown. To give myself the option of building it into some function that I could run later on any TableBox whose structure might also include some StringColBoxes or PlotColBoxes, I tested each box to see if it was a NumberColBox before attempting to apply the conditional format to it. The final script looks like this:&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Preferences&lt;/FONT&gt;(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Conditional Formatting Rules(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;RuleSet(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; RuleName( &lt;FONT color="#800080"&gt;"DMR_Test_01"&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;GreaterThan(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Value( &lt;FONT color="#008080"&gt;0.75&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Inclusive( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"White"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( {&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;200&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;0&lt;/FONT&gt;} ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Range(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; MinValue( &lt;FONT color="#008080"&gt;0.25&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; MaxValue( &lt;FONT color="#008080"&gt;0.75&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; InclusiveStart( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; InclusiveEnd( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Black"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Medium Light Yellow"&lt;/FONT&gt; ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;LessThan(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Value( &lt;FONT color="#008080"&gt;0.25&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Inclusive( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"White"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Red"&lt;/FONT&gt; ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;　&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;fn_RanUni = &lt;FONT color="#0000dd"&gt;function&lt;/FONT&gt;({N}, {default local},&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; RanUniList = {}; &lt;FONT color="#0000dd"&gt;for&lt;/FONT&gt;(i=&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;, i&amp;lt;=N, i++, &lt;FONT color="#0000dd"&gt;insert into&lt;/FONT&gt;(RanUniList, &lt;FONT color="#0000dd"&gt;Random Uniform&lt;/FONT&gt;()));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;RanUniList&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;My_TableBox = &lt;FONT color="#0000dd"&gt;TableBox&lt;/FONT&gt;(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;StringColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"SCB"&lt;/FONT&gt;, {&lt;FONT color="#800080"&gt;"AAA"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"BBB"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"CCC"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"DDD"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"EEE"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"FFF"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"GGG"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"HHH"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"III"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"JJJ"&lt;/FONT&gt;}),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;NumberColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NCB1"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;), &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"Fixed Dec"&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;10&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;3&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;NumberColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NCB2"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;), &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"Fixed Dec"&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;10&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;3&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;PlotColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"PCB1"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;NumberColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NCB3"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;), &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"Fixed Dec"&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;10&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;3&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;NumberColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NCB4"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;), &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"Fixed Dec"&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;10&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;3&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;PlotColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"PCB2"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;NumberColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NCB5"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;), &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"Fixed Dec"&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;10&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;3&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set shade alternate rows&lt;/FONT&gt;(&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set shade headings&lt;/FONT&gt;(&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set column borders&lt;/FONT&gt;(&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set row borders&lt;/FONT&gt;(&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set underline headings&lt;/FONT&gt;(&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;background color&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"white"&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;　&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;for&lt;/FONT&gt;(i=&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;, i&amp;lt;=&lt;FONT color="#0000dd"&gt;nItems&lt;/FONT&gt;(My_TableBox), i++,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;if&lt;/FONT&gt;((My_TableBox[i] &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;class name&lt;/FONT&gt;())==&lt;FONT color="#800080"&gt;"NumberColBox"&lt;/FONT&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; My_TableBox[i] &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set conditional format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"DMR_Test_01"&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;new window&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NW"&lt;/FONT&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;My_TableBox&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can now see from the Preferences how to get the correct&amp;nbsp;syntax for (a) specifying a range, (b) changing the background color of a cell and (c) incorporating a "greater than or equal to" condition.&amp;nbsp;&amp;nbsp;Running the above script should produce something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-04-26 Graphic_2.PNG" style="width: 576px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5976i5616AE8A5D470261/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-04-26 Graphic_2.PNG" alt="2017-04-26 Graphic_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this&amp;nbsp;might be&amp;nbsp;of help to&amp;nbsp;anyone trying to do something similar.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 16:33:51 GMT</pubDate>
    <dc:creator>DMR</dc:creator>
    <dc:date>2017-04-26T16:33:51Z</dc:date>
    <item>
      <title>conditional formatting rules</title>
      <link>https://community.jmp.com/t5/Discussions/conditional-formatting-rules/m-p/13723#M12916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have searched everywhere including the threads like this: &lt;A href="https://community.jmp.com/thread/57948" target="_blank"&gt;Is there a way to send a font color to a single value in a display?  So if X &amp;amp;gt; 10 color X purple (given I know how to de…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can not find out the exact word for adding new conditional formatting rules for greater than or equal or just equal. Can someone list every combination? Here is an example of what I am doing. I need to use substitution to get the variables to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;&lt;BR /&gt;&lt;P&gt;Eval(Substitute(Expr(Preferences(&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Conditional Formatting Rules( RuleSet(&amp;nbsp; RuleName( aaa ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GreaterThan( value(nnn), Format( Text Color( "White" ), FontStyle( Bold ), Back Color( 17 ) ) ), &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expr( aaa ), mystring,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expr( nnn ), myparam&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; );&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key is GreaterThan. I know that works and so does LessThan and capitalization matters!! I just don't know what to do for Equal, Not Equal, Greater than or Equal, and Less than or Equal. I have tried various combinations of capitalization and spacing but nothing has worked. I keep getting Unrecognized Rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, does anyone know the code to delete a ruleset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;None of this information is anywhere to be found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 13:20:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/conditional-formatting-rules/m-p/13723#M12916</guid>
      <dc:creator>h_lazar</dc:creator>
      <dc:date>2016-10-28T13:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: conditional formatting rules</title>
      <link>https://community.jmp.com/t5/Discussions/conditional-formatting-rules/m-p/13724#M12917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bump. Does anyone have any suggestions or replies to my question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Heather&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 13:09:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/conditional-formatting-rules/m-p/13724#M12917</guid>
      <dc:creator>h_lazar</dc:creator>
      <dc:date>2015-08-21T13:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: conditional formatting rules</title>
      <link>https://community.jmp.com/t5/Discussions/conditional-formatting-rules/m-p/38518#M22548</link>
      <description>&lt;P&gt;Hi Heather,&lt;/P&gt;
&lt;P&gt;This is a bit late for a reply to your original query, but I found myself in a very similar situation to the one you describe a couple of days ago - and this is what I did to get the effect I wanted:&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;First, use the interactive dialog as described in &lt;/FONT&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Is-there-a-way-to-send-a-font-color-to-a-single-value-in-a/td-p/8643" target="_blank"&gt;&lt;U&gt;&lt;FONT color="#0000ff" size="3"&gt;&lt;SPAN&gt;https://community.jmp.com/t5/Discussions/Is-there-a-way-to-send-a-font-color-to-a-single-value-in-a/td-p/8643&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt; to create the set of conditions you want. What I wanted to do was to shade the cells of all the NumberColBoxes in a TableBox with a background color of red if the contents was less than 0.25, amber if it was greater than or equal to 0.25 but less than 0.75, and green if it was greater than or equal to 0.75. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted the text color changed from black to white when the background color was red or green to make it easier to read, and I could also have also applied bold and/or italic options to the text if I'd wanted to. The dialog screen when looking at the "amber" condition looked like this:&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-04-26 Graphic.PNG" style="width: 504px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5975iB0FBE610B0C05FE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-04-26 Graphic.PNG" alt="2017-04-26 Graphic.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having set it up, I then needed to see what the above looked like in JSL so I could incorporate it into my script. To do that, type "show preferences()" into a script window and run it. The output shows all your preferences, including the one that's just been set up, which in my case looked like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;RuleSet(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; RuleName( &lt;FONT color="#800080"&gt;"DMR_Test_01"&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;GreaterThan(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Value( &lt;FONT color="#008080"&gt;0.75&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Inclusive( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"White"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( {&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;200&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;0&lt;/FONT&gt;} ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Range(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; MinValue( &lt;FONT color="#008080"&gt;0.25&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; MaxValue( &lt;FONT color="#008080"&gt;0.75&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; InclusiveStart( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; InclusiveEnd( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Black"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Medium Light Yellow"&lt;/FONT&gt; ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;LessThan(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Value( &lt;FONT color="#008080"&gt;0.25&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Inclusive( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"White"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Red"&lt;/FONT&gt; ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I therefore incorporated the above rule set into a Preferences() statement of my own, then tested it on a TableBox with an assortment of columns of random numbers between 0 and 1 as shown. To give myself the option of building it into some function that I could run later on any TableBox whose structure might also include some StringColBoxes or PlotColBoxes, I tested each box to see if it was a NumberColBox before attempting to apply the conditional format to it. The final script looks like this:&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Preferences&lt;/FONT&gt;(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Conditional Formatting Rules(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;RuleSet(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; RuleName( &lt;FONT color="#800080"&gt;"DMR_Test_01"&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;GreaterThan(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Value( &lt;FONT color="#008080"&gt;0.75&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Inclusive( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"White"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( {&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;200&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;0&lt;/FONT&gt;} ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Range(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; MinValue( &lt;FONT color="#008080"&gt;0.25&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; MaxValue( &lt;FONT color="#008080"&gt;0.75&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; InclusiveStart( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; InclusiveEnd( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Black"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Medium Light Yellow"&lt;/FONT&gt; ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;LessThan(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Value( &lt;FONT color="#008080"&gt;0.25&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; Inclusive( &lt;FONT color="#008080"&gt;0&lt;/FONT&gt; ),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;Format&lt;/FONT&gt;( &lt;FONT color="#0000dd"&gt;Text Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"White"&lt;/FONT&gt; ), &lt;FONT color="#0000dd"&gt;Back Color&lt;/FONT&gt;( &lt;FONT color="#800080"&gt;"Red"&lt;/FONT&gt; ) )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;　&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;fn_RanUni = &lt;FONT color="#0000dd"&gt;function&lt;/FONT&gt;({N}, {default local},&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; RanUniList = {}; &lt;FONT color="#0000dd"&gt;for&lt;/FONT&gt;(i=&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;, i&amp;lt;=N, i++, &lt;FONT color="#0000dd"&gt;insert into&lt;/FONT&gt;(RanUniList, &lt;FONT color="#0000dd"&gt;Random Uniform&lt;/FONT&gt;()));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;RanUniList&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;My_TableBox = &lt;FONT color="#0000dd"&gt;TableBox&lt;/FONT&gt;(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;StringColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"SCB"&lt;/FONT&gt;, {&lt;FONT color="#800080"&gt;"AAA"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"BBB"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"CCC"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"DDD"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"EEE"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"FFF"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"GGG"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"HHH"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"III"&lt;/FONT&gt;, &lt;FONT color="#800080"&gt;"JJJ"&lt;/FONT&gt;}),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;NumberColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NCB1"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;), &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"Fixed Dec"&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;10&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;3&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;NumberColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NCB2"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;), &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"Fixed Dec"&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;10&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;3&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;PlotColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"PCB1"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;NumberColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NCB3"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;), &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"Fixed Dec"&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;10&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;3&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;NumberColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NCB4"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;), &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"Fixed Dec"&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;10&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;3&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;PlotColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"PCB2"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;NumberColBox&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NCB5"&lt;/FONT&gt;, fn_RanUni(&lt;FONT color="#008080"&gt;10&lt;/FONT&gt;), &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"Fixed Dec"&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;10&lt;/FONT&gt;, &lt;FONT color="#008080"&gt;3&lt;/FONT&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set shade alternate rows&lt;/FONT&gt;(&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set shade headings&lt;/FONT&gt;(&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set column borders&lt;/FONT&gt;(&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set row borders&lt;/FONT&gt;(&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set underline headings&lt;/FONT&gt;(&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;background color&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"white"&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;　&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;for&lt;/FONT&gt;(i=&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;, i&amp;lt;=&lt;FONT color="#0000dd"&gt;nItems&lt;/FONT&gt;(My_TableBox), i++,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;if&lt;/FONT&gt;((My_TableBox[i] &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;class name&lt;/FONT&gt;())==&lt;FONT color="#800080"&gt;"NumberColBox"&lt;/FONT&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt; My_TableBox[i] &amp;lt;&amp;lt; &lt;FONT color="#000080"&gt;set conditional format&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"DMR_Test_01"&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#0000dd"&gt;new window&lt;/FONT&gt;(&lt;FONT color="#800080"&gt;"NW"&lt;/FONT&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;My_TableBox&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can now see from the Preferences how to get the correct&amp;nbsp;syntax for (a) specifying a range, (b) changing the background color of a cell and (c) incorporating a "greater than or equal to" condition.&amp;nbsp;&amp;nbsp;Running the above script should produce something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-04-26 Graphic_2.PNG" style="width: 576px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5976i5616AE8A5D470261/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-04-26 Graphic_2.PNG" alt="2017-04-26 Graphic_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this&amp;nbsp;might be&amp;nbsp;of help to&amp;nbsp;anyone trying to do something similar.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:33:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/conditional-formatting-rules/m-p/38518#M22548</guid>
      <dc:creator>DMR</dc:creator>
      <dc:date>2017-04-26T16:33:51Z</dc:date>
    </item>
  </channel>
</rss>

