<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Need help with writing script with multiple functions. - Simhub General				            </title>
            <link>https://www.simhubdash.com/community-2/simhub-support/need-help-with-writing-script-with-multiple-functions/</link>
            <description>All about SimHub!</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 13 Sep 2026 23:43:32 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Need help with writing script with multiple functions.</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/need-help-with-writing-script-with-multiple-functions/#post-11604</link>
                        <pubDate>Mon, 13 Apr 2026 15:07:37 +0000</pubDate>
                        <description><![CDATA[Recently in India our company introduced internal checks for AI generated reports before sending them to partners. We needed something accurate but also free. I tested the best safeassign AI...]]></description>
                        <content:encoded><![CDATA[<p>Recently in India our company introduced internal checks for AI generated reports before sending them to partners. We needed something accurate but also free. I tested the <a href="https://safeassignaichecker.com/" target="_blank" rel="noopener">best safeassign AI checker</a> to see if it fits our workflow. It processes documents in seconds, detects AI patterns from multiple models, and doesn’t require account registration or hidden fees, which is useful for teams that just need quick verification without installing extra software. It works reliably for everyday document reviews.</p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>Kerniol</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/need-help-with-writing-script-with-multiple-functions/#post-11604</guid>
                    </item>
				                    <item>
                        <title>RE: Need help with writing script with multiple functions.</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/need-help-with-writing-script-with-multiple-functions/#post-7345</link>
                        <pubDate>Fri, 21 Jul 2023 19:46:04 +0000</pubDate>
                        <description><![CDATA[Thank you!]]></description>
                        <content:encoded><![CDATA[<p>Thank you!</p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>Mario5</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/need-help-with-writing-script-with-multiple-functions/#post-7345</guid>
                    </item>
				                    <item>
                        <title>RE: Need help with writing script with multiple functions.</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/need-help-with-writing-script-with-multiple-functions/#post-2664</link>
                        <pubDate>Wed, 21 Apr 2021 19:07:21 +0000</pubDate>
                        <description><![CDATA[@admin5435 Thank you for your help. Although the app accepted the script it fails in that all times are Yellow. I suspect that I have two problems...at least. This is in rFactor2.
1. in the...]]></description>
                        <content:encoded><![CDATA[<p>@admin5435 Thank you for your help. Although the app accepted the script it fails in that all times are Yellow. I suspect that I have two problems...at least. This is in rFactor2.</p>
<p>1. in the second command I have two arguments to address a faster LastLap than PreviousLap but slower than the BestLap, is that acceptable?</p>
<p>2. The LastLap will never be Purple as it compares to BestLap which is updated simultaneously and then also fails to Yellow. I don't see a PreviousBestLap</p>
<p><strong>if(timespantoseconds()&lt;timespantoseconds()</strong>,'#800080',<strong>if(timespantoseconds()&lt;timespantoseconds()&gt;timespantoseconds()</strong>,'#008000',<strong>if(timespantoseconds()&gt;timespantoseconds()</strong>,'#FF0000','#FFFF00'<strong>)))</strong></p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>DND</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/need-help-with-writing-script-with-multiple-functions/#post-2664</guid>
                    </item>
				                    <item>
                        <title>RE: Need help with writing script with multiple functions.</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/need-help-with-writing-script-with-multiple-functions/#post-2663</link>
                        <pubDate>Wed, 21 Apr 2021 14:38:33 +0000</pubDate>
                        <description><![CDATA[Hi ! To compare time you will need to compare them as seconds, you can use timespantoseconds function to convert it. Considering the colors, it has to be rgb encoded for green it&#039;s  &#039;#00FF00...]]></description>
                        <content:encoded><![CDATA[<p>Hi ! To compare time you will need to compare them as seconds, you can use timespantoseconds function to convert it. Considering the colors, it has to be rgb encoded for green it's  '#00FF00' for instance (don't forget the quotes) <br /><br />About the "if", it's if(condition, trueresult, falseresult) so you can cascade ifs like excel :<br /> if(condition, trueresult, if(seconddontition, trueresult, if(thirdcondition, trueresult, falseresult))) <br /><br /><br /></p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>Wotever</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/need-help-with-writing-script-with-multiple-functions/#post-2663</guid>
                    </item>
				                    <item>
                        <title>Need help with writing script with multiple functions.</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/need-help-with-writing-script-with-multiple-functions/#post-2662</link>
                        <pubDate>Wed, 21 Apr 2021 14:31:16 +0000</pubDate>
                        <description><![CDATA[Trying to use the IF command to write a function for the color of Last Lap determined on the Previous and Best Laps.
Last Lap Time = Previous Lap Time then color is YELLOW
Last Lap Time &amp;l...]]></description>
                        <content:encoded><![CDATA[<div class="wpforo-post-content">
<p>Trying to use the IF command to write a function for the color of Last Lap determined on the Previous and Best Laps.</p>
<p>Last Lap Time = Previous Lap Time then color is YELLOW</p>
<p>Last Lap Time &lt;  Best Lap Time then color is PURPLE</p>
<p>Last Lap Time &lt; Previous Lap Time and is &gt; Best Lap Time then color is GREEN</p>
<p>Last Lap Time &gt; Previous Lap Time then color is RED</p>
<p>I was thinking this would work if it would stop after it found a TRUE statement, but not sure how to assign color.</p>
<p><span style="color: #0000ff;font-weight: bold">if</span><span style="color: #008b8b;font-weight: bold">(</span><span style="color: #0000ff;font-weight: bold"></span><span style="color: #008b8b;font-weight: bold">&lt;</span><span style="color: #0000ff;font-weight: bold"></span>,PURPLE,<span style="color: #0000ff;font-weight: bold"></span><span style="color: #008b8b;font-weight: bold">&gt;</span><span style="color: #0000ff;font-weight: bold"></span>,RED,<span style="color: #0000ff;font-weight: bold"></span><span style="color: #008b8b;font-weight: bold">&lt;</span><span style="color: #0000ff;font-weight: bold"></span>,GREEN<span style="color: #008b8b;font-weight: bold">)</span></p>
</div>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>DND</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/need-help-with-writing-script-with-multiple-functions/#post-2662</guid>
                    </item>
							        </channel>
        </rss>
		